From a3fd9b3a4b0c965d9a460e059f73f1ce0d52cc66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Ander=20Pe=C3=B1alba?= Date: Mon, 30 Aug 2010 10:48:54 +0200 Subject: Minor changes in the panels --- src/history/historypanel.cpp | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'src/history') 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(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(m_treeView->model()); + m_treeView->expand(proxy->index(0, 0)); +} + + QAbstractItemModel* HistoryPanel::getModel() { return Application::historyManager()->historyTreeModel(); } - -- cgit v1.2.1