diff options
author | Jon Ander Peñalba <jonan88@gmail.com> | 2010-08-30 01:40:33 +0200 |
---|---|---|
committer | Jon Ander Peñalba <jonan88@gmail.com> | 2010-08-30 16:58:36 +0200 |
commit | 0d53995507a369d5b4cfddbe365fc8a438fcf3cf (patch) | |
tree | 0c3455349fe95bf1472cf72048127c2dc5888f60 /src/bookmarks/bookmarkspanel.h | |
parent | Use the same FilterProxyModel for the bookmarks and history panels (diff) | |
download | rekonq-0d53995507a369d5b4cfddbe365fc8a438fcf3cf.tar.xz |
New general panel class created and used by the bookmarks and history panel
Diffstat (limited to 'src/bookmarks/bookmarkspanel.h')
-rw-r--r-- | src/bookmarks/bookmarkspanel.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bookmarks/bookmarkspanel.h b/src/bookmarks/bookmarkspanel.h index 4afa953b..e39158d3 100644 --- a/src/bookmarks/bookmarkspanel.h +++ b/src/bookmarks/bookmarkspanel.h @@ -33,15 +33,14 @@ // Rekonq Includes #include "rekonq_defines.h" -// Qt Includes -#include <QDockWidget> +// Local Includes +#include "panels/urlpanel.h" // Forward Declarations -class PanelTreeView; class KBookmark; class QModelIndex; -class REKONQ_TESTS_EXPORT BookmarksPanel : public QDockWidget +class REKONQ_TESTS_EXPORT BookmarksPanel : public UrlPanel { Q_OBJECT @@ -50,16 +49,16 @@ public: virtual ~BookmarksPanel(); signals: - void openUrl(const KUrl &, const Rekonq::OpenType &); - void itemHovered(const QString &); void expansionChanged(); public slots: - void showing(bool); void startLoadFoldedState(); private slots: void contextMenu(const QPoint &pos); + virtual void contextMenuItem(const QPoint &pos); + virtual void contextMenuGroup(const QPoint &pos); + virtual void contextMenuEmpty(const QPoint &pos); void deleteBookmark(); void onCollapse(const QModelIndex &index); @@ -67,11 +66,12 @@ private slots: void loadFoldedState(const QModelIndex &root); private: - void setup(); + virtual void setup(); KBookmark bookmarkForIndex(const QModelIndex &index); - PanelTreeView *m_treeView; - bool m_loadingState, m_loaded; + virtual QAbstractItemModel* getModel(); + + bool m_loadingState; }; #endif // BOOKMARKSPANEL_H |