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/tabbar.cpp | 1 - src/tabwindow/tabbar.h | 3 +++ src/tabwindow/tabhighlighteffect.h | 3 +++ src/tabwindow/tabpreviewpopup.h | 5 +++++ src/tabwindow/tabwindow.cpp | 11 +++++++---- src/tabwindow/tabwindow.h | 5 +++++ 6 files changed, 23 insertions(+), 5 deletions(-) (limited to 'src/tabwindow') diff --git a/src/tabwindow/tabbar.cpp b/src/tabwindow/tabbar.cpp index 133ece5c..7f0a6691 100644 --- a/src/tabwindow/tabbar.cpp +++ b/src/tabwindow/tabbar.cpp @@ -26,7 +26,6 @@ #include "tabpreviewpopup.h" #include "webwindow.h" -#include #include #include #include diff --git a/src/tabwindow/tabbar.h b/src/tabwindow/tabbar.h index af97c998..a34ebfe3 100644 --- a/src/tabwindow/tabbar.h +++ b/src/tabwindow/tabbar.h @@ -22,6 +22,9 @@ #define TAB_BAR +// Rekonq Includes +#include "rekonq_defines.h" + // KDE Includes #include diff --git a/src/tabwindow/tabhighlighteffect.h b/src/tabwindow/tabhighlighteffect.h index 88302283..5e8ccab6 100644 --- a/src/tabwindow/tabhighlighteffect.h +++ b/src/tabwindow/tabhighlighteffect.h @@ -28,6 +28,9 @@ #define TABHIGHLIGHTEFFECT_H +// Rekonq Includes +#include "rekonq_defines.h" + // Qt Includes #include #include diff --git a/src/tabwindow/tabpreviewpopup.h b/src/tabwindow/tabpreviewpopup.h index b496f60f..37d270c7 100644 --- a/src/tabwindow/tabpreviewpopup.h +++ b/src/tabwindow/tabpreviewpopup.h @@ -28,6 +28,10 @@ #ifndef TABPREVIEWPOPUP_H #define TABPREVIEWPOPUP_H + +// Rekonq Includes +#include "rekonq_defines.h" + // KDE Includes #include @@ -36,6 +40,7 @@ class QLabel; class QPixmap; class QString; + class TabPreviewPopup : public KPassivePopup { Q_OBJECT 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) ) { diff --git a/src/tabwindow/tabwindow.h b/src/tabwindow/tabwindow.h index 24f1b42e..101d5804 100644 --- a/src/tabwindow/tabwindow.h +++ b/src/tabwindow/tabwindow.h @@ -23,8 +23,13 @@ #define TAB_WINDOW +// Rekonq Includes +#include "rekonq_defines.h" + +// KDE Includes #include +// Forward Declarations class KUrl; class QLabel; -- cgit v1.2.1