┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/bookmarkssidebarpage.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-25 06:44:28 +0000
committerPeter Penz <[email protected]>2007-03-25 06:44:28 +0000
commit8f9baef848c3056cd1df772f0774decad509cff3 (patch)
treeadcad2dcf4d15e0102d0c466b4d4a38ccd4ff875 /src/bookmarkssidebarpage.h
parent3b4d05893b4023338d8484dc5c6812bbe0fb0ceb (diff)
Patch by Luca Gugelmann: get rid of any mainwindow dependency from the sidebars.
svn path=/trunk/KDE/kdebase/apps/; revision=646256
Diffstat (limited to 'src/bookmarkssidebarpage.h')
-rw-r--r--src/bookmarkssidebarpage.h22
1 files changed, 5 insertions, 17 deletions
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 <sidebarpage.h>
#include <q3listbox.h>
//Added by qt3to4:
#include <QPaintEvent>
#include <QPixmap>
+#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;
};