if (m_keyInfo->isKeyPressed(Qt::Key_Shift) || m_keyInfo->isKeyLatched(Qt::Key_Shift)) {
m_shiftPressed = true;
}
- connect(m_keyInfo, SIGNAL(keyPressed(Qt::Key, bool)),
- this, SLOT(slotKeyModifierPressed(Qt::Key, bool)));
+ connect(m_keyInfo, SIGNAL(keyPressed(Qt::Key,bool)),
+ this, SLOT(slotKeyModifierPressed(Qt::Key,bool)));
}
m_removeAction = new QAction(this);
connect(undoManager, SIGNAL(undoAvailable(bool)),
this, SLOT(slotUndoAvailable(bool)));
- connect(undoManager, SIGNAL(undoTextChanged(const QString&)),
- this, SLOT(slotUndoTextChanged(const QString&)));
+ connect(undoManager, SIGNAL(undoTextChanged(QString)),
+ this, SLOT(slotUndoTextChanged(QString)));
connect(undoManager, SIGNAL(jobRecordingStarted(CommandType)),
this, SLOT(clearStatusBar()));
connect(undoManager, SIGNAL(jobRecordingFinished(CommandType)),
this, SLOT(showCommand(CommandType)));
- connect(DolphinSettings::instance().placesModel(), SIGNAL(errorMessage(const QString&)),
- this, SLOT(showErrorMessage(const QString&)));
- //connect(&DragAndDropHelper::instance(), SIGNAL(errorMessage(const QString&)),
- // this, SLOT(showErrorMessage(const QString&)));
+ connect(DolphinSettings::instance().placesModel(), SIGNAL(errorMessage(QString)),
+ this, SLOT(showErrorMessage(QString)));
+ //connect(&DragAndDropHelper::instance(), SIGNAL(errorMessage(QString)),
+ // this, SLOT(showErrorMessage(QString)));
const DolphinSettings& settings = DolphinSettings::instance();
m_actionHandler->setCurrentView(view);
m_remoteEncoding = new DolphinRemoteEncoding(this, m_actionHandler);
- connect(this, SIGNAL(urlChanged(const KUrl&)),
+ connect(this, SIGNAL(urlChanged(KUrl)),
m_remoteEncoding, SLOT(slotAboutToOpenUrl()));
m_tabBar = new KTabBar(this);
this, SLOT(setActiveTab(int)));
connect(m_tabBar, SIGNAL(tabCloseRequested(int)),
this, SLOT(closeTab(int)));
- connect(m_tabBar, SIGNAL(contextMenu(int, const QPoint&)),
- this, SLOT(openTabContextMenu(int, const QPoint&)));
+ connect(m_tabBar, SIGNAL(contextMenu(int,QPoint)),
+ this, SLOT(openTabContextMenu(int,QPoint)));
connect(m_tabBar, SIGNAL(newTabRequest()),
this, SLOT(openNewTab()));
- connect(m_tabBar, SIGNAL(testCanDecode(const QDragMoveEvent*, bool&)),
- this, SLOT(slotTestCanDecode(const QDragMoveEvent*, bool&)));
+ connect(m_tabBar, SIGNAL(testCanDecode(const QDragMoveEvent*,bool&)),
+ this, SLOT(slotTestCanDecode(const QDragMoveEvent*,bool&)));
connect(m_tabBar, SIGNAL(mouseMiddleClick(int)),
this, SLOT(closeTab(int)));
- connect(m_tabBar, SIGNAL(tabMoved(int, int)),
- this, SLOT(slotTabMoved(int, int)));
- connect(m_tabBar, SIGNAL(receivedDropEvent(int, QDropEvent*)),
- this, SLOT(tabDropEvent(int, QDropEvent*)));
+ connect(m_tabBar, SIGNAL(tabMoved(int,int)),
+ this, SLOT(slotTabMoved(int,int)));
+ connect(m_tabBar, SIGNAL(receivedDropEvent(int,QDropEvent*)),
+ this, SLOT(tabDropEvent(int,QDropEvent*)));
m_tabBar->blockSignals(true); // signals get unblocked after at least 2 tabs are open
// setup 'Go' menu
KAction* backAction = KStandardAction::back(this, SLOT(goBack()), actionCollection());
- connect(backAction, SIGNAL(triggered(Qt::MouseButtons, Qt::KeyboardModifiers)), this, SLOT(goBack(Qt::MouseButtons)));
+ connect(backAction, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)), this, SLOT(goBack(Qt::MouseButtons)));
KShortcut backShortcut = backAction->shortcut();
backShortcut.setAlternate(Qt::Key_Backspace);
backAction->setShortcut(backShortcut);
m_recentTabsMenu = new KActionMenu(i18n("Recently Closed Tabs"), this);
m_recentTabsMenu->setIcon(KIcon("edit-undo"));
actionCollection()->addAction("closed_tabs", m_recentTabsMenu);
- connect(m_recentTabsMenu->menu(), SIGNAL(triggered(QAction *)),
- this, SLOT(restoreClosedTab(QAction *)));
+ connect(m_recentTabsMenu->menu(), SIGNAL(triggered(QAction*)),
+ this, SLOT(restoreClosedTab(QAction*)));
QAction* action = new QAction(i18n("Empty Recently Closed Tabs"), m_recentTabsMenu);
action->setIcon(KIcon("edit-clear-list"));
m_recentTabsMenu->setEnabled(false);
KAction* forwardAction = KStandardAction::forward(this, SLOT(goForward()), actionCollection());
- connect(forwardAction, SIGNAL(triggered(Qt::MouseButtons, Qt::KeyboardModifiers)), this, SLOT(goForward(Qt::MouseButtons)));
+ connect(forwardAction, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)), this, SLOT(goForward(Qt::MouseButtons)));
KAction* upAction = KStandardAction::up(this, SLOT(goUp()), actionCollection());
- connect(upAction, SIGNAL(triggered(Qt::MouseButtons, Qt::KeyboardModifiers)), this, SLOT(goUp(Qt::MouseButtons)));
+ connect(upAction, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)), this, SLOT(goUp(Qt::MouseButtons)));
KStandardAction::home(this, SLOT(goHome()), actionCollection());
addDockWidget(Qt::LeftDockWidgetArea, foldersDock);
connect(this, SIGNAL(urlChanged(KUrl)),
foldersPanel, SLOT(setUrl(KUrl)));
- connect(foldersPanel, SIGNAL(changeUrl(KUrl, Qt::MouseButtons)),
- this, SLOT(handlePlacesClick(KUrl, Qt::MouseButtons)));
+ connect(foldersPanel, SIGNAL(changeUrl(KUrl,Qt::MouseButtons)),
+ this, SLOT(handlePlacesClick(KUrl,Qt::MouseButtons)));
// Setup "Terminal"
#ifndef Q_OS_WIN
addActionCloneToCollection(placesAction, "show_places_panel");
addDockWidget(Qt::LeftDockWidgetArea, placesDock);
- connect(placesPanel, SIGNAL(urlChanged(KUrl, Qt::MouseButtons)),
- this, SLOT(handlePlacesClick(KUrl, Qt::MouseButtons)));
+ connect(placesPanel, SIGNAL(urlChanged(KUrl,Qt::MouseButtons)),
+ this, SLOT(handlePlacesClick(KUrl,Qt::MouseButtons)));
connect(this, SIGNAL(urlChanged(KUrl)),
placesPanel, SLOT(setUrl(KUrl)));
connect(placesDock, SIGNAL(visibilityChanged(bool)),
this, SLOT(slotRequestItemInfo(KFileItem)));
connect(view, SIGNAL(activated()),
this, SLOT(toggleActiveView()));
- connect(view, SIGNAL(tabRequested(const KUrl&)),
- this, SLOT(openNewTab(const KUrl&)));
- connect(view, SIGNAL(requestContextMenu(KFileItem, const KUrl&, const QList<QAction*>&)),
- this, SLOT(openContextMenu(KFileItem, const KUrl&, const QList<QAction*>&)));
+ connect(view, SIGNAL(tabRequested(KUrl)),
+ this, SLOT(openNewTab(KUrl)));
+ connect(view, SIGNAL(requestContextMenu(KFileItem,KUrl,QList<QAction*>)),
+ this, SLOT(openContextMenu(KFileItem,KUrl,QList<QAction*>)));
connect(view, SIGNAL(startedPathLoading(KUrl)),
this, SLOT(enableStopAction()));
connect(view, SIGNAL(finishedPathLoading(KUrl)),
this, SLOT(disableStopAction()));
const KUrlNavigator* navigator = container->urlNavigator();
- connect(navigator, SIGNAL(urlChanged(const KUrl&)),
- this, SLOT(changeUrl(const KUrl&)));
+ connect(navigator, SIGNAL(urlChanged(KUrl)),
+ this, SLOT(changeUrl(KUrl)));
connect(navigator, SIGNAL(historyChanged()),
this, SLOT(updateHistory()));
connect(navigator, SIGNAL(editableStateChanged(bool)),
this, SLOT(slotEditableStateChanged(bool)));
- connect(navigator, SIGNAL(tabRequested(const KUrl&)),
+ connect(navigator, SIGNAL(tabRequested(KUrl)),
this, SLOT(openNewTab(KUrl)));
}
this, SLOT(slotRequestItemInfo(KFileItem)));
connect(m_view, SIGNAL(modeChanged(DolphinView::Mode,DolphinView::Mode)),
this, SIGNAL(viewModeChanged())); // relay signal
- connect(m_view, SIGNAL(redirection(KUrl, KUrl)),
- this, SLOT(slotRedirection(KUrl, KUrl)));
+ connect(m_view, SIGNAL(redirection(KUrl,KUrl)),
+ this, SLOT(slotRedirection(KUrl,KUrl)));
// Watch for changes that should result in updates to the
// status bar text.
connect(m_view, SIGNAL(itemCountChanged()), this, SLOT(updateStatusBar()));
- connect(m_view, SIGNAL(selectionChanged(const KFileItemList)), this, SLOT(updateStatusBar()));
+ connect(m_view, SIGNAL(selectionChanged(KFileItemList)), this, SLOT(updateStatusBar()));
m_actionHandler = new DolphinViewActionHandler(actionCollection(), this);
m_actionHandler->setCurrentView(m_view);
m_topLayout->setMargin(0);
m_urlNavigator = new KUrlNavigator(DolphinSettings::instance().placesModel(), url, this);
- connect(m_urlNavigator, SIGNAL(urlsDropped(const KUrl&, QDropEvent*)),
- this, SLOT(dropUrls(const KUrl&, QDropEvent*)));
+ connect(m_urlNavigator, SIGNAL(urlsDropped(KUrl,QDropEvent*)),
+ this, SLOT(dropUrls(KUrl,QDropEvent*)));
connect(m_urlNavigator, SIGNAL(activated()),
this, SLOT(activate()));
connect(m_urlNavigator->editor(), SIGNAL(completionModeChanged(KGlobalSettings::Completion)),
connect(m_searchBox, SIGNAL(returnPressed(QString)), this, SLOT(requestFocus()));
m_view = new DolphinView(url, this);
- connect(m_view, SIGNAL(urlChanged(const KUrl&)), m_urlNavigator, SLOT(setUrl(const KUrl&)));
+ connect(m_view, SIGNAL(urlChanged(KUrl)), m_urlNavigator, SLOT(setUrl(KUrl)));
connect(m_view, SIGNAL(writeStateChanged(bool)), this, SIGNAL(writeStateChanged(bool)));
connect(m_view, SIGNAL(requestItemInfo(KFileItem)), this, SLOT(showItemInfo(KFileItem)));
- connect(m_view, SIGNAL(errorMessage(const QString&)), this, SLOT(showErrorMessage(const QString&)));
- connect(m_view, SIGNAL(infoMessage(const QString&)), this, SLOT(showInfoMessage(const QString&)));
+ connect(m_view, SIGNAL(errorMessage(QString)), this, SLOT(showErrorMessage(QString)));
+ connect(m_view, SIGNAL(infoMessage(QString)), this, SLOT(showInfoMessage(QString)));
connect(m_view, SIGNAL(itemTriggered(KFileItem)), this, SLOT(slotItemTriggered(KFileItem)));
- connect(m_view, SIGNAL(redirection(KUrl, KUrl)), this, SLOT(redirect(KUrl, KUrl)));
+ connect(m_view, SIGNAL(redirection(KUrl,KUrl)), this, SLOT(redirect(KUrl,KUrl)));
connect(m_view, SIGNAL(startedPathLoading(KUrl)), this, SLOT(slotStartedPathLoading()));
connect(m_view, SIGNAL(finishedPathLoading(KUrl)), this, SLOT(slotFinishedPathLoading()));
connect(m_view, SIGNAL(itemCountChanged()), this, SLOT(delayedStatusBarUpdate()));
connect(m_view, SIGNAL(pathLoadingProgress(int)), this, SLOT(updateProgress(int)));
- connect(m_view, SIGNAL(infoMessage(const QString&)), this, SLOT(showInfoMessage(const QString&)));
- connect(m_view, SIGNAL(errorMessage(const QString&)), this, SLOT(showErrorMessage(const QString&)));
- connect(m_view, SIGNAL(urlIsFileError(const KUrl&)), this, SLOT(openFile(const KUrl&)));
- connect(m_view, SIGNAL(selectionChanged(const KFileItemList&)), this, SLOT(delayedStatusBarUpdate()));
- connect(m_view, SIGNAL(operationCompletedMessage(const QString&)), this, SLOT(showOperationCompletedMessage(const QString&)));
- connect(m_view, SIGNAL(urlAboutToBeChanged(const KUrl&)), this, SLOT(slotViewUrlAboutToBeChanged(const KUrl&)));
-
- connect(m_urlNavigator, SIGNAL(urlAboutToBeChanged(const KUrl&)),
- this, SLOT(slotUrlNavigatorLocationAboutToBeChanged(const KUrl&)));
- connect(m_urlNavigator, SIGNAL(urlChanged(const KUrl&)),
- this, SLOT(slotUrlNavigatorLocationChanged(const KUrl&)));
+ connect(m_view, SIGNAL(infoMessage(QString)), this, SLOT(showInfoMessage(QString)));
+ connect(m_view, SIGNAL(errorMessage(QString)), this, SLOT(showErrorMessage(QString)));
+ connect(m_view, SIGNAL(urlIsFileError(KUrl)), this, SLOT(openFile(KUrl)));
+ connect(m_view, SIGNAL(selectionChanged(KFileItemList)), this, SLOT(delayedStatusBarUpdate()));
+ connect(m_view, SIGNAL(operationCompletedMessage(QString)), this, SLOT(showOperationCompletedMessage(QString)));
+ connect(m_view, SIGNAL(urlAboutToBeChanged(KUrl)), this, SLOT(slotViewUrlAboutToBeChanged(KUrl)));
+
+ connect(m_urlNavigator, SIGNAL(urlAboutToBeChanged(KUrl)),
+ this, SLOT(slotUrlNavigatorLocationAboutToBeChanged(KUrl)));
+ connect(m_urlNavigator, SIGNAL(urlChanged(KUrl)),
+ this, SLOT(slotUrlNavigatorLocationChanged(KUrl)));
connect(m_urlNavigator, SIGNAL(historyChanged()),
this, SLOT(slotHistoryChanged()));
// initialize filter bar
m_filterBar = new FilterBar(this);
m_filterBar->setVisible(settings->filterBar());
- connect(m_filterBar, SIGNAL(filterChanged(const QString&)),
- this, SLOT(setNameFilter(const QString&)));
+ connect(m_filterBar, SIGNAL(filterChanged(QString)),
+ this, SLOT(setNameFilter(QString)));
connect(m_filterBar, SIGNAL(closeRequest()),
this, SLOT(closeFilterBar()));
- connect(m_view, SIGNAL(urlChanged(const KUrl&)),
+ connect(m_view, SIGNAL(urlChanged(KUrl)),
m_filterBar, SLOT(clear()));
m_topLayout->addWidget(m_urlNavigator);
m_filterInput = new KLineEdit(this);
m_filterInput->setLayoutDirection(Qt::LeftToRight);
m_filterInput->setClearButtonShown(true);
- connect(m_filterInput, SIGNAL(textChanged(const QString&)),
- this, SIGNAL(filterChanged(const QString&)));
+ connect(m_filterInput, SIGNAL(textChanged(QString)),
+ this, SIGNAL(filterChanged(QString)));
setFocusProxy(m_filterInput);
// Apply layout
job = KIO::filePreview(itemsSubSet, cacheSize, &m_enabledPlugins);
}
- connect(job, SIGNAL(gotPreview(const KFileItem&, const QPixmap&)),
- this, SLOT(slotGotPreview(const KFileItem&, const QPixmap&)));
+ connect(job, SIGNAL(gotPreview(KFileItem,QPixmap)),
+ this, SLOT(slotGotPreview(KFileItem,QPixmap)));
connect(job, SIGNAL(failed(KFileItem)),
this, SLOT(slotPreviewFailed(KFileItem)));
connect(job, SIGNAL(finished(KJob*)),
m_layouter->setSizeHintResolver(m_sizeHintResolver);
m_animation = new KItemListViewAnimation(this);
- connect(m_animation, SIGNAL(finished(QGraphicsWidget*, KItemListViewAnimation::AnimationType)),
- this, SLOT(slotAnimationFinished(QGraphicsWidget*, KItemListViewAnimation::AnimationType)));
+ connect(m_animation, SIGNAL(finished(QGraphicsWidget*,KItemListViewAnimation::AnimationType)),
+ this, SLOT(slotAnimationFinished(QGraphicsWidget*,KItemListViewAnimation::AnimationType)));
m_layoutTimer = new QTimer(this);
m_layoutTimer->setInterval(300);
m_dolphinModel = new DolphinModel(this);
m_dolphinModel->setDirLister(m_dirLister);
m_dolphinModel->setDropsAllowed(DolphinModel::DropOnDirectory);
- connect(m_dolphinModel, SIGNAL(expand(const QModelIndex&)),
- this, SLOT(expandToDir(const QModelIndex&)));
+ connect(m_dolphinModel, SIGNAL(expand(QModelIndex)),
+ this, SLOT(expandToDir(QModelIndex)));
Q_ASSERT(!m_proxyModel);
m_proxyModel = new DolphinSortFilterProxyModel(this);
new FolderExpander(m_treeView, m_proxyModel);
- connect(m_treeView, SIGNAL(clicked(const QModelIndex&)),
- this, SLOT(updateActiveView(const QModelIndex&)));
- connect(m_treeView, SIGNAL(urlsDropped(const QModelIndex&, QDropEvent*)),
- this, SLOT(dropUrls(const QModelIndex&, QDropEvent*)));
- connect(m_treeView, SIGNAL(pressed(const QModelIndex&)),
+ connect(m_treeView, SIGNAL(clicked(QModelIndex)),
+ this, SLOT(updateActiveView(QModelIndex)));
+ connect(m_treeView, SIGNAL(urlsDropped(QModelIndex,QDropEvent*)),
+ this, SLOT(dropUrls(QModelIndex,QDropEvent*)));
+ connect(m_treeView, SIGNAL(pressed(QModelIndex)),
this, SLOT(updateMouseButtons()));
connect(m_treeView->horizontalScrollBar(), SIGNAL(sliderMoved(int)),
connect(timeLine, SIGNAL(frameChanged(int)),
this, SLOT(updateVerticalScrollBar(int)));
- connect(parent->verticalScrollBar(), SIGNAL(rangeChanged(int, int)),
+ connect(parent->verticalScrollBar(), SIGNAL(rangeChanged(int,int)),
this, SLOT(startScrolling()));
connect(parent->verticalScrollBar(), SIGNAL(valueChanged(int)),
this, SLOT(startScrolling()));
- connect(parent, SIGNAL(collapsed(const QModelIndex&)),
+ connect(parent, SIGNAL(collapsed(QModelIndex)),
this, SLOT(startScrolling()));
- connect(parent, SIGNAL(expanded(const QModelIndex&)),
+ connect(parent, SIGNAL(expanded(QModelIndex)),
this, SLOT(startScrolling()));
}
org::kde::KDirNotify* dirNotify = new org::kde::KDirNotify(QString(), QString(),
QDBusConnection::sessionBus(), this);
- connect(dirNotify, SIGNAL(FileRenamed(QString, QString)), SLOT(slotFileRenamed(QString, QString)));
+ connect(dirNotify, SIGNAL(FileRenamed(QString,QString)), SLOT(slotFileRenamed(QString,QString)));
connect(dirNotify, SIGNAL(FilesAdded(QString)), SLOT(slotFilesAdded(QString)));
connect(dirNotify, SIGNAL(FilesChanged(QStringList)), SLOT(slotFilesChanged(QStringList)));
connect(dirNotify, SIGNAL(FilesRemoved(QStringList)), SLOT(slotFilesRemoved(QStringList)));
KIO::PreviewJob* job = KIO::filePreview(KFileItemList() << item, QSize(m_preview->width(), m_preview->height()));
job->setScaleType(KIO::PreviewJob::Unscaled);
- connect(job, SIGNAL(gotPreview(const KFileItem&, const QPixmap&)),
- this, SLOT(showPreview(const KFileItem&, const QPixmap&)));
- connect(job, SIGNAL(failed(const KFileItem&)),
- this, SLOT(showIcon(const KFileItem&)));
+ connect(job, SIGNAL(gotPreview(KFileItem,QPixmap)),
+ this, SLOT(showPreview(KFileItem,QPixmap)));
+ connect(job, SIGNAL(failed(KFileItem)),
+ this, SLOT(showIcon(KFileItem)));
}
}
}
Q_ASSERT(m_media);
- connect(m_media, SIGNAL(stateChanged(Phonon::State, Phonon::State)),
+ connect(m_media, SIGNAL(stateChanged(Phonon::State,Phonon::State)),
this, SLOT(stateChanged(Phonon::State)));
m_seekSlider->setMediaObject(m_media);
{
if (m_media) {
m_media->stop();
- disconnect(m_media, SIGNAL(stateChanged(Phonon::State, Phonon::State)),
+ disconnect(m_media, SIGNAL(stateChanged(Phonon::State,Phonon::State)),
this, SLOT(stateChanged(Phonon::State)));
emit playingStopped();
m_mouseButtons(Qt::NoButton)
{
setDropOnPlaceEnabled(true);
- connect(this, SIGNAL(urlsDropped(const KUrl&, QDropEvent*, QWidget*)),
- this, SLOT(slotUrlsDropped(const KUrl&, QDropEvent*, QWidget*)));
- connect(this, SIGNAL(urlChanged(const KUrl&)),
- this, SLOT(emitExtendedUrlChangedSignal(const KUrl&)));
+ connect(this, SIGNAL(urlsDropped(KUrl,QDropEvent*,QWidget*)),
+ this, SLOT(slotUrlsDropped(KUrl,QDropEvent*,QWidget*)));
+ connect(this, SIGNAL(urlChanged(KUrl)),
+ this, SLOT(emitExtendedUrlChangedSignal(KUrl)));
}
PlacesPanel::~PlacesPanel()
m_viewProps->setSortOrder(viewProps.sortOrder());
KIO::ListJob* listJob = KIO::listRecursive(dir, KIO::HideProgressInfo);
- connect(listJob, SIGNAL(entries(KIO::Job*, const KIO::UDSEntryList&)),
- SLOT(slotEntries(KIO::Job*, const KIO::UDSEntryList&)));
+ connect(listJob, SIGNAL(entries(KIO::Job*,KIO::UDSEntryList)),
+ SLOT(slotEntries(KIO::Job*,KIO::UDSEntryList)));
addSubjob(listJob);
}
loadSettings();
- connect(m_homeUrl, SIGNAL(textChanged(const QString&)), this, SLOT(slotSettingsChanged()));
+ connect(m_homeUrl, SIGNAL(textChanged(QString)), this, SLOT(slotSettingsChanged()));
connect(m_splitView, SIGNAL(toggled(bool)), this, SLOT(slotSettingsChanged()));
connect(m_editableUrl, SIGNAL(toggled(bool)), this, SLOT(slotSettingsChanged()));
connect(m_showFullPath, SIGNAL(toggled(bool)), this, SLOT(slotSettingsChanged()));
m_showProgressBarTimer(0),
m_messageTimeStamp()
{
- connect(m_view, SIGNAL(urlChanged(const KUrl&)),
- this, SLOT(updateSpaceInfoContent(const KUrl&)));
+ connect(m_view, SIGNAL(urlChanged(KUrl)),
+ this, SLOT(updateSpaceInfoContent(KUrl)));
// Initialize message label
m_messageLabel = new KonqStatusBarMessageLabel(this);
connect(m_zoomSlider, SIGNAL(valueChanged(int)), this, SLOT(setZoomLevel(int)));
connect(m_zoomSlider, SIGNAL(sliderMoved(int)), this, SLOT(showZoomSliderToolTip(int)));
- connect(m_view, SIGNAL(zoomLevelChanged(int, int)), this, SLOT(slotZoomLevelChanged(int, int)));
+ connect(m_view, SIGNAL(zoomLevelChanged(int,int)), this, SLOT(slotZoomLevelChanged(int,int)));
// Initialize space information
m_spaceInfo = new StatusBarSpaceInfo(this);
updateGridSize();
/*
- connect(this, SIGNAL(clicked(const QModelIndex&)),
- dolphinViewController, SLOT(requestTab(const QModelIndex&)));*/
+ connect(this, SIGNAL(clicked(QModelIndex)),
+ dolphinViewController, SLOT(requestTab(QModelIndex)));*/
/*
- connect(this, SIGNAL(entered(const QModelIndex&)),
- dolphinViewController, SLOT(emitItemEntered(const QModelIndex&)));
+ connect(this, SIGNAL(entered(QModelIndex)),
+ dolphinViewController, SLOT(emitItemEntered(QModelIndex)));
connect(this, SIGNAL(viewportEntered()),
dolphinViewController, SLOT(emitViewportEntered()));*/
void DolphinNewFileMenuObserver::attach(const KNewFileMenu* menu)
{
- connect(menu, SIGNAL(fileCreated(const KUrl&)),
- this, SIGNAL(itemCreated(const KUrl&)));
- connect(menu, SIGNAL(directoryCreated(const KUrl&)),
- this, SIGNAL(itemCreated(const KUrl&)));
+ connect(menu, SIGNAL(fileCreated(KUrl)),
+ this, SIGNAL(itemCreated(KUrl)));
+ connect(menu, SIGNAL(directoryCreated(KUrl)),
+ this, SIGNAL(itemCreated(KUrl)));
}
void DolphinNewFileMenuObserver::detach(const KNewFileMenu* menu)
{
- disconnect(menu, SIGNAL(fileCreated(const KUrl&)),
- this, SIGNAL(itemCreated(const KUrl&)));
- disconnect(menu, SIGNAL(directoryCreated(const KUrl&)),
- this, SIGNAL(itemCreated(const KUrl&)));
+ disconnect(menu, SIGNAL(fileCreated(KUrl)),
+ this, SIGNAL(itemCreated(KUrl)));
+ disconnect(menu, SIGNAL(directoryCreated(KUrl)),
+ this, SIGNAL(itemCreated(KUrl)));
}
DolphinNewFileMenuObserver::DolphinNewFileMenuObserver() :
//m_viewModeController = new ViewModeController(this);
//m_viewModeController->setUrl(url);
- /*connect(m_viewModeController, SIGNAL(urlChanged(const KUrl&)),
- this, SIGNAL(urlChanged(const KUrl&)));
+ /*connect(m_viewModeController, SIGNAL(urlChanged(KUrl)),
+ this, SIGNAL(urlChanged(KUrl)));
- connect(m_dolphinViewController, SIGNAL(requestContextMenu(const QPoint&, const QList<QAction*>&)),
- this, SLOT(openContextMenu(const QPoint&, const QList<QAction*>&)));
- connect(m_dolphinViewController, SIGNAL(urlsDropped(const KFileItem&, const KUrl&, QDropEvent*)),
- this, SLOT(dropUrls(const KFileItem&, const KUrl&, QDropEvent*)));
+ connect(m_dolphinViewController, SIGNAL(requestContextMenu(QPoint,QList<QAction*>)),
+ this, SLOT(openContextMenu(QPoint,QList<QAction*>)));
+ connect(m_dolphinViewController, SIGNAL(urlsDropped(KFileItem,KUrl,QDropEvent*)),
+ this, SLOT(dropUrls(KFileItem,KUrl,QDropEvent*)));
connect(m_dolphinViewController, SIGNAL(sortingChanged(DolphinView::Sorting)),
this, SLOT(updateSorting(DolphinView::Sorting)));
connect(m_dolphinViewController, SIGNAL(sortOrderChanged(Qt::SortOrder)),
this, SLOT(updateSortOrder(Qt::SortOrder)));
connect(m_dolphinViewController, SIGNAL(sortFoldersFirstChanged(bool)),
this, SLOT(updateSortFoldersFirst(bool)));
- connect(m_dolphinViewController, SIGNAL(additionalInfoChanged(const QList<DolphinView::AdditionalInfo>&)),
- this, SLOT(updateAdditionalInfo(const QList<DolphinView::AdditionalInfo>&)));*/
- //connect(m_dolphinViewController, SIGNAL(itemTriggered(const KFileItem&)),
- // this, SLOT(triggerItem(const KFileItem&)));
- //connect(m_dolphinViewController, SIGNAL(tabRequested(const KUrl&)),
- // this, SIGNAL(tabRequested(const KUrl&)));
+ connect(m_dolphinViewController, SIGNAL(additionalInfoChanged(QList<DolphinView::AdditionalInfo>)),
+ this, SLOT(updateAdditionalInfo(QList<DolphinView::AdditionalInfo>)));*/
+ //connect(m_dolphinViewController, SIGNAL(itemTriggered(KFileItem)),
+ // this, SLOT(triggerItem(KFileItem)));
+ //connect(m_dolphinViewController, SIGNAL(tabRequested(KUrl)),
+ // this, SIGNAL(tabRequested(KUrl)));
/*connect(m_dolphinViewController, SIGNAL(activated()),
this, SLOT(activate()));
- connect(m_dolphinViewController, SIGNAL(itemEntered(const KFileItem&)),
- this, SLOT(showHoverInformation(const KFileItem&)));
+ connect(m_dolphinViewController, SIGNAL(itemEntered(KFileItem)),
+ this, SLOT(showHoverInformation(KFileItem)));
connect(m_dolphinViewController, SIGNAL(viewportEntered()),
this, SLOT(clearHoverInformation()));
connect(m_dolphinViewController, SIGNAL(urlChangeRequested(KUrl)),
// When a new item has been created by the "Create New..." menu, the item should
// get selected and it must be assured that the item will get visible. As the
// creation is done asynchronously, several signals must be checked:
- connect(&DolphinNewFileMenuObserver::instance(), SIGNAL(itemCreated(const KUrl&)),
- this, SLOT(observeCreatedItem(const KUrl&)));
+ connect(&DolphinNewFileMenuObserver::instance(), SIGNAL(itemCreated(KUrl)),
+ this, SLOT(observeCreatedItem(KUrl)));
m_selectionChangedTimer = new QTimer(this);
m_selectionChangedTimer->setSingleShot(true);
connect(m_dirLister, SIGNAL(redirection(KUrl,KUrl)), this, SLOT(slotRedirection(KUrl,KUrl)));
connect(m_dirLister, SIGNAL(started(KUrl)), this, SLOT(slotDirListerStarted(KUrl)));
connect(m_dirLister, SIGNAL(completed()), this, SLOT(slotDirListerCompleted()));
- connect(m_dirLister, SIGNAL(refreshItems(const QList<QPair<KFileItem,KFileItem>>&)),
+ connect(m_dirLister, SIGNAL(refreshItems(QList<QPair<KFileItem,KFileItem> >)),
this, SLOT(slotRefreshItems()));
connect(m_dirLister, SIGNAL(clear()), this, SIGNAL(itemCountChanged()));
connect(m_dirLister, SIGNAL(newItems(KFileItemList)), this, SIGNAL(itemCountChanged()));
- connect(m_dirLister, SIGNAL(infoMessage(const QString&)), this, SIGNAL(infoMessage(const QString&)));
- connect(m_dirLister, SIGNAL(errorMessage(const QString&)), this, SIGNAL(infoMessage(const QString&)));
+ connect(m_dirLister, SIGNAL(infoMessage(QString)), this, SIGNAL(infoMessage(QString)));
+ connect(m_dirLister, SIGNAL(errorMessage(QString)), this, SIGNAL(infoMessage(QString)));
connect(m_dirLister, SIGNAL(percent(int)), this, SIGNAL(pathLoadingProgress(int)));
- connect(m_dirLister, SIGNAL(urlIsFileError(const KUrl&)), this, SIGNAL(urlIsFileError(const KUrl&)));
- connect(m_dirLister, SIGNAL(itemsDeleted(const KFileItemList&)), this, SIGNAL(itemCountChanged()));
+ connect(m_dirLister, SIGNAL(urlIsFileError(KUrl)), this, SIGNAL(urlIsFileError(KUrl)));
+ connect(m_dirLister, SIGNAL(itemsDeleted(KFileItemList)), this, SIGNAL(itemCountChanged()));
m_container = new DolphinItemListContainer(m_dirLister, this);
QHash<QByteArray, int> visibleRoles;
m_container->setVisibleRoles(visibleRoles);
KItemListController* controller = m_container->controller();
- connect(controller, SIGNAL(itemClicked(int, Qt::MouseButton)),
- this, SLOT(slotItemClicked(int, Qt::MouseButton)));
+ connect(controller, SIGNAL(itemClicked(int,Qt::MouseButton)),
+ this, SLOT(slotItemClicked(int,Qt::MouseButton)));
connect(controller, SIGNAL(itemExpansionToggleClicked(int)), this, SLOT(slotItemExpansionToggleClicked(int)));
applyViewProperties();
void DolphinView::observeCreatedItem(const KUrl& url)
{
m_createdItemUrl = url;
- //connect(m_dirModel, SIGNAL(rowsInserted(const QModelIndex&, int, int)),
+ //connect(m_dirModel, SIGNAL(rowsInserted(QModelIndex,int,int)),
// this, SLOT(selectAndScrollToCreatedItem()));
}
}
}
- disconnect(m_viewAccessor.dirModel(), SIGNAL(rowsInserted(const QModelIndex&, int, int)),
+ disconnect(m_viewAccessor.dirModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
this, SLOT(selectAndScrollToCreatedItem()));*/
m_createdItemUrl = KUrl();
}
m_currentView = view;
- connect(view, SIGNAL(modeChanged(DolphinView::Mode, DolphinView::Mode)),
+ connect(view, SIGNAL(modeChanged(DolphinView::Mode,DolphinView::Mode)),
this, SLOT(updateViewActions()));
connect(view, SIGNAL(previewsShownChanged(bool)),
this, SLOT(slotPreviewsShownChanged(bool)));
this, SLOT(slotHiddenFilesShownChanged(bool)));
connect(view, SIGNAL(sortingChanged(DolphinView::Sorting)),
this, SLOT(slotSortingChanged(DolphinView::Sorting)));
- connect(view, SIGNAL(zoomLevelChanged(int, int)),
- this, SLOT(slotZoomLevelChanged(int, int)));
+ connect(view, SIGNAL(zoomLevelChanged(int,int)),
+ this, SLOT(slotZoomLevelChanged(int,int)));
}
DolphinView* DolphinViewActionHandler::currentView()
moveToTrash->setText(i18nc("@action:inmenu File", "Move to Trash"));
moveToTrash->setIcon(KIcon("user-trash"));
moveToTrash->setShortcut(QKeySequence::Delete);
- connect(moveToTrash, SIGNAL(triggered(Qt::MouseButtons, Qt::KeyboardModifiers)),
- this, SLOT(slotTrashActivated(Qt::MouseButtons, Qt::KeyboardModifiers)));
+ connect(moveToTrash, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)),
+ this, SLOT(slotTrashActivated(Qt::MouseButtons,Qt::KeyboardModifiers)));
KAction* deleteAction = m_actionCollection->addAction("delete");
deleteAction->setIcon(KIcon("edit-delete"));
m_itemRect()
{
//m_dolphinModel = static_cast<DolphinModel*>(m_proxyModel->sourceModel());
- //connect(parent, SIGNAL(entered(const QModelIndex&)),
- // this, SLOT(requestToolTip(const QModelIndex&)));
+ //connect(parent, SIGNAL(entered(QModelIndex)),
+ // this, SLOT(requestToolTip(QModelIndex)));
//connect(parent, SIGNAL(viewportEntered()),
// this, SLOT(hideToolTip()));
KIO::PreviewJob* job = KIO::filePreview(KFileItemList() << m_item, QSize(256, 256));
- connect(job, SIGNAL(gotPreview(const KFileItem&, const QPixmap&)),
- this, SLOT(setPreviewPix(const KFileItem&, const QPixmap&)));
- connect(job, SIGNAL(failed(const KFileItem&)),
+ connect(job, SIGNAL(gotPreview(KFileItem,QPixmap)),
+ this, SLOT(setPreviewPix(KFileItem,QPixmap)));
+ connect(job, SIGNAL(failed(KFileItem)),
this, SLOT(previewFailed()));
}
// The directory is versioned. Assume that the user will further browse through
// versioned directories and decrease the verification timer.
m_dirVerificationTimer->setInterval(100);
- connect(m_dirLister, SIGNAL(refreshItems(const QList<QPair<KFileItem,KFileItem>>&)),
+ connect(m_dirLister, SIGNAL(refreshItems(QList<QPair<KFileItem,KFileItem> >)),
this, SLOT(delayedDirectoryVerification()));
- connect(m_dirLister, SIGNAL(newItems(const KFileItemList&)),
+ connect(m_dirLister, SIGNAL(newItems(KFileItemList)),
this, SLOT(delayedDirectoryVerification()));
}
updateItemStates();
// value, so that browsing through non-versioned directories is not slown down
// by an immediate verification.
m_dirVerificationTimer->setInterval(500);
- disconnect(m_dirLister, SIGNAL(refreshItems(const QList<QPair<KFileItem,KFileItem>>&)),
+ disconnect(m_dirLister, SIGNAL(refreshItems(QList<QPair<KFileItem,KFileItem> >)),
this, SLOT(delayedDirectoryVerification()));
- disconnect(m_dirLister, SIGNAL(newItems(const KFileItemList&)),
+ disconnect(m_dirLister, SIGNAL(newItems(KFileItemList)),
this, SLOT(delayedDirectoryVerification()));
}*/
}