From d89f43f66bb323a612c2f7de09d5969e437845e0 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 2 Jul 2007 17:24:54 +0000 Subject: Change signature of requestItemInfo signal, to avoid fileitem -> url -> index -> fileitem roundtrip in dolphin, and to match the BrowserExtension mouseOverInfo() signal. Started to implement more of the part (e.g. spinning wheel in konq). svn path=/trunk/KDE/kdebase/apps/; revision=682440 --- src/dolphinmainwindow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index ddf7b19b1..6e1beb6a5 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -366,9 +366,9 @@ void DolphinMainWindow::slotSelectionChanged(const KFileItemList& selection) emit selectionChanged(selection); } -void DolphinMainWindow::slotRequestItemInfo(const KUrl& url) +void DolphinMainWindow::slotRequestItemInfo(const KFileItem& item) { - emit requestItemInfo(url); + emit requestItemInfo(item); } void DolphinMainWindow::slotHistoryChanged() @@ -1340,8 +1340,8 @@ void DolphinMainWindow::setupDockWidgets() infoWidget, SLOT(setUrl(KUrl))); connect(this, SIGNAL(selectionChanged(KFileItemList)), infoWidget, SLOT(setSelection(KFileItemList))); - connect(this, SIGNAL(requestItemInfo(KUrl)), - infoWidget, SLOT(requestDelayedItemInfo(KUrl))); + connect(this, SIGNAL(requestItemInfo(KFileItem)), + infoWidget, SLOT(requestDelayedItemInfo(KFileItem))); // setup "Tree View" QDockWidget* treeViewDock = new QDockWidget(i18nc("@title:window", "Folders")); @@ -1561,8 +1561,8 @@ void DolphinMainWindow::connectViewSignals(int viewIndex) this, SLOT(slotAdditionalInfoChanged(KFileItemDelegate::AdditionalInformation))); connect(view, SIGNAL(selectionChanged(KFileItemList)), this, SLOT(slotSelectionChanged(KFileItemList))); - connect(view, SIGNAL(requestItemInfo(KUrl)), - this, SLOT(slotRequestItemInfo(KUrl))); + connect(view, SIGNAL(requestItemInfo(KFileItem)), + this, SLOT(slotRequestItemInfo(KFileItem))); connect(view, SIGNAL(activated()), this, SLOT(toggleActiveView())); -- cgit v1.3