diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-07-29 11:22:24 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:04 +0100 |
commit | fe7c06fffa370f8f04a3035f3ae92975ea39b960 (patch) | |
tree | f60ad5a2bd0c72ccac0c195dc5630c15071e35f2 /src/tabwindow/tabwindow.cpp | |
parent | Class Application Import, first (important) part (diff) | |
download | rekonq-fe7c06fffa370f8f04a3035f3ae92975ea39b960.tar.xz |
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
Diffstat (limited to 'src/tabwindow/tabwindow.cpp')
-rw-r--r-- | src/tabwindow/tabwindow.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
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 <KAction> -#include <KDebug> #include <KLocalizedString> #include <KStandardDirs> #include <KUrl> +// Qt Includes #include <QApplication> #include <QDesktopWidget> #include <QLabel> @@ -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) ) { |