summaryrefslogtreecommitdiff
path: root/src/history/historypanel.h
diff options
context:
space:
mode:
authorJon Ander Peñalba <jonan88@gmail.com>2010-08-30 01:40:33 +0200
committerJon Ander Peñalba <jonan88@gmail.com>2010-08-30 16:58:36 +0200
commit0d53995507a369d5b4cfddbe365fc8a438fcf3cf (patch)
tree0c3455349fe95bf1472cf72048127c2dc5888f60 /src/history/historypanel.h
parentUse the same FilterProxyModel for the bookmarks and history panels (diff)
downloadrekonq-0d53995507a369d5b4cfddbe365fc8a438fcf3cf.tar.xz
New general panel class created and used by the bookmarks and history panel
Diffstat (limited to 'src/history/historypanel.h')
-rw-r--r--src/history/historypanel.h27
1 files changed, 9 insertions, 18 deletions
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 <QDockWidget>
+// 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