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/bookmarkssidebarpage.h | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'src/bookmarkssidebarpage.h') diff --git a/src/bookmarkssidebarpage.h b/src/bookmarkssidebarpage.h index 3eb9a55a0..c50585ccb 100644 --- a/src/bookmarkssidebarpage.h +++ b/src/bookmarkssidebarpage.h @@ -19,12 +19,13 @@ #ifndef _BOOKMARKSSIDEBARPAGE_H_ #define _BOOKMARKSSIDEBARPAGE_H_ -#include #include //Added by qt3to4: #include #include +#include "sidebarpage.h" + class KUrl; class BookmarksListBox; @@ -41,12 +42,11 @@ class BookmarksSidebarPage : public SidebarPage Q_OBJECT public: - BookmarksSidebarPage(DolphinMainWindow *mainWindow, QWidget* parent=0); + BookmarksSidebarPage(QWidget* parent=0); virtual ~BookmarksSidebarPage(); -protected: - /** @see SidebarPage::activeViewChanged() */ - virtual void activeViewChanged(); +public slots: + void setUrl(const KUrl& url); private slots: /** Fills the listbox with the bookmarks stored in DolphinSettings. */ @@ -61,12 +61,6 @@ private slots: /** @see QListBox::slotContextMenuRequested */ void slotContextMenuRequested(Q3ListBoxItem* item, const QPoint& pos); - /** - * Is invoked whenever the Url of the active view has been changed. Adjusts - * the selection of the listbox to the bookmark which is part of the current Url. - */ - void slotUrlChanged(const KUrl& url); - private: /** * Updates the selection dependent from the given Url \a url. The @@ -77,12 +71,6 @@ private: */ void adjustSelection(const KUrl& url); - /** - * Connects to signals from the currently active Dolphin view to get - * informed about Url and bookmark changes. - */ - void connectToActiveView(); - BookmarksListBox* m_bookmarksList; }; -- cgit v1.3