diff options
| author | David Faure <[email protected]> | 2007-03-26 20:32:50 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2007-03-26 20:32:50 +0000 |
| commit | 581a2b1c642ae259a2e0990a5ea7bef3286cd412 (patch) | |
| tree | ff875ee8f2df09b36196fb8a10087eeb12f76d0f /src/bookmarkselector.h | |
| parent | ad6c01d200e2504de1a383355bd82906fe5c06ed (diff) | |
A small step in trying to make urlnavigator useable in kdelibs for the file dialog:
remove dependency on DolphinSettings::bookmarkManager().
svn path=/trunk/KDE/kdebase/apps/; revision=646880
Diffstat (limited to 'src/bookmarkselector.h')
| -rw-r--r-- | src/bookmarkselector.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/bookmarkselector.h b/src/bookmarkselector.h index 334f25ba3..a92f186ec 100644 --- a/src/bookmarkselector.h +++ b/src/bookmarkselector.h @@ -44,7 +44,7 @@ public: * @param parent Parent widget where the bookmark selector * is embedded into. */ - BookmarkSelector(UrlNavigator* parent); + BookmarkSelector(UrlNavigator* parent, KBookmarkManager* bookmarkManager); virtual ~BookmarkSelector(); @@ -57,12 +57,6 @@ public: */ void updateSelection(const KUrl& url); - /** - * Returns the index of the selected bookmark. To get - * the bookmark, use BookmarkSelector::selectedBookmark(). - */ - int selectedIndex() const { return m_selectedIndex; } - /** Returns the selected bookmark. */ KBookmark selectedBookmark() const; @@ -83,7 +77,7 @@ public: * * The base URL will be '/home/peter/Documents'. */ - static KBookmark baseBookmark(const KUrl& url); + static KBookmark baseBookmark(KBookmarkManager* bookmarkManager, const KUrl& url); signals: /** @@ -107,13 +101,10 @@ private slots: void activateBookmark(QAction* action); private: - static int baseBookmarkIndex(const KUrl& url); - -private: - int m_selectedIndex; + QString m_selectedAddress; UrlNavigator* m_urlNavigator; KMenu* m_bookmarksMenu; - + KBookmarkManager* m_bookmarkManager; }; #endif |
