From 9461c52f07a2bf8b9bc25f037b17805cda51b2b0 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 10 Mar 2013 19:02:12 +0100 Subject: Supporting panel (again) :) - Move to a pure QWidget base window (instead of TabWidget one) (this to properly store panels position) - Restoring && rewamping panels code - Restoring actions to activate/deactivate them BUG: 312354 --- src/rekonqpage/newtabpage.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/rekonqpage') diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp index c1a1f248..48b567de 100644 --- a/src/rekonqpage/newtabpage.cpp +++ b/src/rekonqpage/newtabpage.cpp @@ -34,7 +34,8 @@ // Local Includes #include "application.h" -#include "tabwindow.h" +#include "rekonqwindow.h" +#include "tabwidget.h" #include "previewselectorbar.h" #include "thumbupdater.h" @@ -181,7 +182,7 @@ void NewTabPage::generate(const KUrl &url) { const int tabIndex = url.queryItem(QL1S("tab")).toInt(); - rApp->tabWindow()->restoreClosedTab(tabIndex, false); + rApp->rekonqWindow()->tabWidget()->restoreClosedTab(tabIndex, false); return; } } @@ -430,7 +431,7 @@ void NewTabPage::historyPage(const QString & filter) m_root.document().findFirst(QL1S("#actions")).appendInside(clearHistory); HistoryTreeModel *model = HistoryManager::self()->historyTreeModel(); - UrlFilterProxyModel *proxy = new UrlFilterProxyModel(this); + SortFilterProxyModel *proxy = new SortFilterProxyModel(this); proxy->setSourceModel(model); bool filterIsEmpty = filter.isEmpty(); @@ -563,7 +564,7 @@ void NewTabPage::closedTabsPage() { m_root.addClass(QL1S("closedTabs")); - QList links = rApp->tabWindow()->recentlyClosedTabs(); + QList links = rApp->rekonqWindow()->tabWidget()->recentlyClosedTabs(); if (links.isEmpty()) { -- cgit v1.2.1