From 8f9baef848c3056cd1df772f0774decad509cff3 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 25 Mar 2007 06:44:28 +0000 Subject: Patch by Luca Gugelmann: get rid of any mainwindow dependency from the sidebars. svn path=/trunk/KDE/kdebase/apps/; revision=646256 --- src/infosidebarpage.h | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'src/infosidebarpage.h') diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h index 7cb996327..938b86959 100644 --- a/src/infosidebarpage.h +++ b/src/infosidebarpage.h @@ -44,7 +44,6 @@ class QPainter; class KFileItem; class QLabel; class KVBox; -class Q3Grid; class PixmapViewer; class MetaDataWidget; @@ -58,12 +57,12 @@ class InfoSidebarPage : public SidebarPage Q_OBJECT public: - explicit InfoSidebarPage(DolphinMainWindow* mainWindow, QWidget* parent = 0); + explicit InfoSidebarPage(QWidget* parent = 0); virtual ~InfoSidebarPage(); -protected: - /** @see SidebarPage::activeViewChanged() */ - virtual void activeViewChanged(); +public slots: + void setUrl(const KUrl& url); + void setSelection(const KFileItemList& selection); private slots: /** @@ -74,14 +73,6 @@ private slots: */ void requestDelayedItemInfo(const KUrl& url); - /** - * Does a request of information for the item of the given Url and - * provides default actions. - * - * @see InfoSidebarPage::showItemInfo() - */ - void requestItemInfo(const KUrl& url); - /** * Shows the information for the item of the Url which has been provided by * InfoSidebarPage::requestItemInfo() and provides default actions. @@ -113,12 +104,6 @@ private slots: void startService(int index); private: - /** - * Connects to signals from the currently active Dolphin view to get - * informed about highlighting changes. - */ - void connectToActiveView(); - /** * Checks whether the an Url is repesented by a bookmark. If yes, * then the bookmark icon and name are shown instead of a preview. @@ -154,6 +139,7 @@ private: QTimer* m_timer; KUrl m_shownUrl; KUrl m_urlCandidate; + KFileItemList m_currentSelection; PixmapViewer* m_preview; QLabel* m_name; -- cgit v1.3