From 0d53995507a369d5b4cfddbe365fc8a438fcf3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Ander=20Pe=C3=B1alba?= Date: Mon, 30 Aug 2010 01:40:33 +0200 Subject: New general panel class created and used by the bookmarks and history panel --- src/history/historypanel.h | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'src/history/historypanel.h') diff --git a/src/history/historypanel.h b/src/history/historypanel.h index 5a511e47..12ffe953 100644 --- a/src/history/historypanel.h +++ b/src/history/historypanel.h @@ -32,14 +32,11 @@ // Rekonq Includes #include "rekonq_defines.h" -// Qt Includes -#include +// Local Includes +#include "panels/urlpanel.h" -// Forward Declarations -class PanelTreeView; - -class REKONQ_TESTS_EXPORT HistoryPanel : public QDockWidget +class REKONQ_TESTS_EXPORT HistoryPanel : public UrlPanel { Q_OBJECT @@ -47,23 +44,17 @@ public: explicit HistoryPanel(const QString &title, QWidget *parent = 0, Qt::WindowFlags flags = 0); virtual ~HistoryPanel(); -public slots: - void showing(bool); - -signals: - void openUrl(const KUrl &, const Rekonq::OpenType &); - void itemHovered(const QString &); - private slots: - void contextMenuItem(const QPoint &pos); - void contextMenuGroup(const QPoint &pos); + virtual void contextMenuItem(const QPoint &pos); + virtual void contextMenuGroup(const QPoint &pos); + virtual void contextMenuEmpty(const QPoint &pos); + void openAll(); private: - void setup(); + virtual void setup(); - PanelTreeView *m_treeView; - bool _loaded; + virtual QAbstractItemModel* getModel(); }; #endif // HISTORYPANEL_H -- cgit v1.2.1