From fe7c06fffa370f8f04a3035f3ae92975ea39b960 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 29 Jul 2012 11:22:24 +0200 Subject: Insert back HistoryManager There are a few notable changes here: - rekonq_defines.h clean up, removing the enums from there - let HistoryManager be accessible by a self function --- src/tabwindow/tabwindow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/tabwindow/tabwindow.cpp') diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp index a849426e..d3826848 100644 --- a/src/tabwindow/tabwindow.cpp +++ b/src/tabwindow/tabwindow.cpp @@ -18,21 +18,24 @@ ***************************************************************************/ +// Self Includes #include "tabwindow.h" #include "tabwindow.moc" +// Local Includes #include "webpage.h" #include "webwindow.h" #include "tabbar.h" #include "tabhistory.h" +// KDE Includes #include -#include #include #include #include +// Qt Includes #include #include #include @@ -222,7 +225,7 @@ void TabWindow::currentChanged(int newIndex) if (!tab) return; - setWindowTitle(tab->title() + QLatin1String(" - rekonq")); + setWindowTitle(tab->title() + QL1S(" - rekonq")); setWindowIcon(tab->icon()); } @@ -285,7 +288,7 @@ void TabWindow::tabTitleChanged(const QString &title) } else { - setWindowTitle(title + QLatin1String(" - rekonq")); + setWindowTitle(title + QL1S(" - rekonq")); } // TODO: What about window title? Is this enough? @@ -388,7 +391,7 @@ void TabWindow::closeTab(int index, bool del) } if (!tabToClose->url().isEmpty() - && tabToClose->url().scheme() != QLatin1String("about") + && tabToClose->url().scheme() != QL1S("about") && !tabToClose->page()->settings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) ) { -- cgit v1.2.1