summaryrefslogtreecommitdiff
path: root/src/history/historypanel.cpp
diff options
context:
space:
mode:
authorJon Ander Peñalba <jonan88@gmail.com>2010-08-30 10:48:54 +0200
committerJon Ander Peñalba <jonan88@gmail.com>2010-08-30 16:58:36 +0200
commita3fd9b3a4b0c965d9a460e059f73f1ce0d52cc66 (patch)
tree0a40c399393f013a04153959a03eb74caff22a3f /src/history/historypanel.cpp
parentNew general panel class created and used by the bookmarks and history panel (diff)
downloadrekonq-a3fd9b3a4b0c965d9a460e059f73f1ce0d52cc66.tar.xz
Minor changes in the panels
Diffstat (limited to 'src/history/historypanel.cpp')
-rw-r--r--src/history/historypanel.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/history/historypanel.cpp b/src/history/historypanel.cpp
index 79efb2b1..c0097965 100644
--- a/src/history/historypanel.cpp
+++ b/src/history/historypanel.cpp
@@ -62,18 +62,6 @@ HistoryPanel::~HistoryPanel()
}
-void HistoryPanel::setup()
-{
- UrlPanel::setup();
- kDebug() << "History panel...";
-
- m_treeView->header()->hideSection(1);
-
- const UrlFilterProxyModel *proxy = static_cast<const UrlFilterProxyModel*>(m_treeView->model());
- m_treeView->expand(proxy->index(0, 0));
-}
-
-
void HistoryPanel::contextMenuItem(const QPoint &pos)
{
KMenu menu;
@@ -144,8 +132,19 @@ void HistoryPanel::openAll()
}
+void HistoryPanel::setup()
+{
+ UrlPanel::setup();
+ kDebug() << "History panel...";
+
+ m_treeView->header()->hideSection(1);
+
+ const UrlFilterProxyModel *proxy = static_cast<const UrlFilterProxyModel*>(m_treeView->model());
+ m_treeView->expand(proxy->index(0, 0));
+}
+
+
QAbstractItemModel* HistoryPanel::getModel()
{
return Application::historyManager()->historyTreeModel();
}
-