diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-01-24 19:17:58 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-01-24 19:17:58 +0100 |
commit | b87a805af7b066159ff4f10ff9c30fd7428ea706 (patch) | |
tree | ebce1dea818a54bd51fbcff0074df793e4f09904 /src/history/historypanel.h | |
parent | Here we are, with this commit I removed a lot of direct calls to (diff) | |
download | rekonq-b87a805af7b066159ff4f10ff9c30fd7428ea706.tar.xz |
Fixing panels
With this commit I fixed panel behaviour && saved some bytes
in their definition.
This will help hacking there (they are pretty the same now, I just
have no time to let them inherit from a parent "rekonq panel" class)
and will save some bytes in rekonq footprint :)
Diffstat (limited to 'src/history/historypanel.h')
-rw-r--r-- | src/history/historypanel.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/history/historypanel.h b/src/history/historypanel.h index 083b2741..e07e2190 100644 --- a/src/history/historypanel.h +++ b/src/history/historypanel.h @@ -29,36 +29,31 @@ #define HISTORYPANEL_H -// Local Includes -#include "application.h" -#include "historymodels.h" - // Qt Includes -#include <QtGui/QWidget> -#include <QtGui/QTreeView> +#include <QDockWidget> // Forward Declarations class KUrl; +class QWidget; +class QModelIndex; -class HistoryPanel : public QWidget +class HistoryPanel : public QDockWidget { Q_OBJECT public: - explicit HistoryPanel(QWidget *parent = 0); - virtual ~HistoryPanel(); + explicit HistoryPanel(const QString &title, QWidget *parent = 0, Qt::WindowFlags flags = 0); + ~HistoryPanel(); signals: void openUrl(const KUrl &); private slots: - void open(); + void itemActivated(const QModelIndex &); private: - QTreeView *m_historyTreeView; - TreeProxyModel *m_treeProxyModel; - + void setup(); }; #endif // HISTORYPANEL_H |