summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-12 21:33:26 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-12 21:33:26 (GMT)
commit0c5e64ed193141edd63de7eb01a10e6d353e1856 (patch)
tree89b399e16b75653c94f1550ece27d939d8dbef76
parent8fda40ba1182be9031aff1d8d6c037cf0342515d (diff)
Clean up includes
-rw-r--r--mimetreeparser/autotests/nodehelpertest.cpp1
-rw-r--r--mimetreeparser/src/interfaces/bodypartformatter.cpp1
-rw-r--r--mimetreeparser/src/viewer/attachmentstrategy.cpp1
-rw-r--r--mimetreeparser/src/viewer/bodypartformatterbasefactory.cpp1
-rw-r--r--mimetreeparser/src/viewer/objecttreeparser.cpp1
-rw-r--r--webengineviewer/src/print/autotests/printpreviewpagewidgettest.cpp1
-rw-r--r--webengineviewer/src/print/autotests/printwebengineviewjobtest.cpp1
-rw-r--r--webengineviewer/src/print/printselectpagedialog.cpp1
-rw-r--r--webengineviewer/src/print/tests/printwebenginetest_gui.cpp1
-rw-r--r--webengineviewer/src/tests/testdndwebengine.cpp2
-rw-r--r--webengineviewer/src/tests/testjquerysupportwebengine.cpp5
-rw-r--r--webengineviewer/src/tests/testselectedtextwebengine.cpp4
-rw-r--r--webengineviewer/src/webengineaccesskey/webengineaccesskey.cpp1
-rw-r--r--webengineviewer/src/webenginemanagescript.cpp1
-rw-r--r--webengineviewer/src/webenginepage.cpp1
-rw-r--r--webengineviewer/src/webengineview.cpp3
-rw-r--r--webengineviewer/src/webhittest.h1
-rw-r--r--webengineviewer/src/webhittestresult.h2
-rw-r--r--webengineviewer/src/widgets/zoomactionmenu.cpp1
19 files changed, 3 insertions, 27 deletions
diff --git a/mimetreeparser/autotests/nodehelpertest.cpp b/mimetreeparser/autotests/nodehelpertest.cpp
index dbece5d..d100279 100644
--- a/mimetreeparser/autotests/nodehelpertest.cpp
+++ b/mimetreeparser/autotests/nodehelpertest.cpp
@@ -21,7 +21,6 @@
#include "viewer/nodehelper.h"
#include <qtest.h>
-#include <QDebug>
using namespace MimeTreeParser;
diff --git a/mimetreeparser/src/interfaces/bodypartformatter.cpp b/mimetreeparser/src/interfaces/bodypartformatter.cpp
index 50c1057..5a38116 100644
--- a/mimetreeparser/src/interfaces/bodypartformatter.cpp
+++ b/mimetreeparser/src/interfaces/bodypartformatter.cpp
@@ -36,7 +36,6 @@
#include "htmlwriter/queuehtmlwriter.h"
#include "viewer/objecttreeparser.h"
-#include <QDebug>
using namespace MimeTreeParser::Interface;
diff --git a/mimetreeparser/src/viewer/attachmentstrategy.cpp b/mimetreeparser/src/viewer/attachmentstrategy.cpp
index 3e6f828..545e4d2 100644
--- a/mimetreeparser/src/viewer/attachmentstrategy.cpp
+++ b/mimetreeparser/src/viewer/attachmentstrategy.cpp
@@ -39,7 +39,6 @@
#include <KMime/Content>
#include <QIcon>
-#include <QMimeDatabase>
#include "mimetreeparser_debug.h"
diff --git a/mimetreeparser/src/viewer/bodypartformatterbasefactory.cpp b/mimetreeparser/src/viewer/bodypartformatterbasefactory.cpp
index fdab608..7241831 100644
--- a/mimetreeparser/src/viewer/bodypartformatterbasefactory.cpp
+++ b/mimetreeparser/src/viewer/bodypartformatterbasefactory.cpp
@@ -36,7 +36,6 @@
#include "mimetreeparser_debug.h"
// Qt
-#include <QString>
#include <assert.h>
diff --git a/mimetreeparser/src/viewer/objecttreeparser.cpp b/mimetreeparser/src/viewer/objecttreeparser.cpp
index fe6cf9d..5e54c7f 100644
--- a/mimetreeparser/src/viewer/objecttreeparser.cpp
+++ b/mimetreeparser/src/viewer/objecttreeparser.cpp
@@ -54,7 +54,6 @@
#include <KMime/Message>
// KDE includes
-#include <KLocalizedString>
// Qt includes
#include <QByteArray>
diff --git a/webengineviewer/src/print/autotests/printpreviewpagewidgettest.cpp b/webengineviewer/src/print/autotests/printpreviewpagewidgettest.cpp
index 3702fa7..e4ccde0 100644
--- a/webengineviewer/src/print/autotests/printpreviewpagewidgettest.cpp
+++ b/webengineviewer/src/print/autotests/printpreviewpagewidgettest.cpp
@@ -21,7 +21,6 @@
#include "../printpreviewpagewidget.h"
#include "../printpreviewpageviewer.h"
-#include <QDialogButtonBox>
#include <QTest>
#include <QLayout>
#include <QHBoxLayout>
diff --git a/webengineviewer/src/print/autotests/printwebengineviewjobtest.cpp b/webengineviewer/src/print/autotests/printwebengineviewjobtest.cpp
index c49c4db..d15ac51 100644
--- a/webengineviewer/src/print/autotests/printwebengineviewjobtest.cpp
+++ b/webengineviewer/src/print/autotests/printwebengineviewjobtest.cpp
@@ -20,7 +20,6 @@
#include "printwebengineviewjobtest.h"
#include "../printwebengineviewjob.h"
#include <QTest>
-#include <QPageLayout>
#include <QSignalSpy>
#include <QWebEngineView>
diff --git a/webengineviewer/src/print/printselectpagedialog.cpp b/webengineviewer/src/print/printselectpagedialog.cpp
index 09d50a2..6075aa4 100644
--- a/webengineviewer/src/print/printselectpagedialog.cpp
+++ b/webengineviewer/src/print/printselectpagedialog.cpp
@@ -20,7 +20,6 @@
#include "printselectpagedialog.h"
#include "printselectpagewidget.h"
-#include <KLocalizedString>
#include <KConfigGroup>
#include <KSharedConfig>
#include <QVBoxLayout>
diff --git a/webengineviewer/src/print/tests/printwebenginetest_gui.cpp b/webengineviewer/src/print/tests/printwebenginetest_gui.cpp
index 6dae650..8d25ac3 100644
--- a/webengineviewer/src/print/tests/printwebenginetest_gui.cpp
+++ b/webengineviewer/src/print/tests/printwebenginetest_gui.cpp
@@ -25,7 +25,6 @@
#include <QApplication>
#include <QStandardPaths>
#include <QVBoxLayout>
-#include <QHBoxLayout>
#include <QPushButton>
#include <QWebEngineView>
#include <QDebug>
diff --git a/webengineviewer/src/tests/testdndwebengine.cpp b/webengineviewer/src/tests/testdndwebengine.cpp
index 4a671d9..3199fe8 100644
--- a/webengineviewer/src/tests/testdndwebengine.cpp
+++ b/webengineviewer/src/tests/testdndwebengine.cpp
@@ -20,9 +20,7 @@
#include "testdndwebengine.h"
#include <QApplication>
-#include <QFile>
#include <QVBoxLayout>
-#include <QDebug>
#include <webengineview.h>
#include <QTextEdit>
diff --git a/webengineviewer/src/tests/testjquerysupportwebengine.cpp b/webengineviewer/src/tests/testjquerysupportwebengine.cpp
index e782a60..231af0e 100644
--- a/webengineviewer/src/tests/testjquerysupportwebengine.cpp
+++ b/webengineviewer/src/tests/testjquerysupportwebengine.cpp
@@ -18,15 +18,12 @@
*/
#include "testjquerysupportwebengine.h"
-#include <QHBoxLayout>
#include <QApplication>
-#include <QWebEngineView>
#include <WebEngineViewer/WebEnginePage>
-#include <QDebug>
#include <webengineview.h>
#include <QPushButton>
-#include <QMessageBox>
#include <QTextEdit>
+#include <QVBoxLayout>
TestJQuerySupportWebEngine::TestJQuerySupportWebEngine(QWidget *parent)
: QWidget(parent)
diff --git a/webengineviewer/src/tests/testselectedtextwebengine.cpp b/webengineviewer/src/tests/testselectedtextwebengine.cpp
index 239d8c0..dbec155 100644
--- a/webengineviewer/src/tests/testselectedtextwebengine.cpp
+++ b/webengineviewer/src/tests/testselectedtextwebengine.cpp
@@ -18,14 +18,12 @@
*/
#include "testselectedtextwebengine.h"
-#include <QHBoxLayout>
#include <QApplication>
-#include <QWebEngineView>
#include <WebEngineViewer/WebEnginePage>
-#include <QDebug>
#include <webengineview.h>
#include <QPushButton>
#include <QMessageBox>
+#include <QVBoxLayout>
TestSelectedTextWebEngine::TestSelectedTextWebEngine(QWidget *parent)
: QWidget(parent)
diff --git a/webengineviewer/src/webengineaccesskey/webengineaccesskey.cpp b/webengineviewer/src/webengineaccesskey/webengineaccesskey.cpp
index 3798420..5846e7b 100644
--- a/webengineviewer/src/webengineaccesskey/webengineaccesskey.cpp
+++ b/webengineviewer/src/webengineaccesskey/webengineaccesskey.cpp
@@ -27,7 +27,6 @@
#include <QAction>
#include <QWebEngineView>
#include <QToolTip>
-#include <QCoreApplication>
#include <QDebug>
using namespace WebEngineViewer;
template<typename Arg, typename R, typename C>
diff --git a/webengineviewer/src/webenginemanagescript.cpp b/webengineviewer/src/webenginemanagescript.cpp
index 0fe9abd..5934585 100644
--- a/webengineviewer/src/webenginemanagescript.cpp
+++ b/webengineviewer/src/webenginemanagescript.cpp
@@ -23,7 +23,6 @@
#include <QWebEngineProfile>
#include <QWebEngineScript>
#include <QWebEngineScriptCollection>
-#include <QDebug>
using namespace WebEngineViewer;
diff --git a/webengineviewer/src/webenginepage.cpp b/webengineviewer/src/webenginepage.cpp
index 5d061bd..b12a38c 100644
--- a/webengineviewer/src/webenginepage.cpp
+++ b/webengineviewer/src/webenginepage.cpp
@@ -24,7 +24,6 @@
#include <KLocalizedString>
#include <QEventLoop>
-#include <QWebEngineSettings>
#include <QWebEngineDownloadItem>
#include <QPointer>
#include <QTimer>
diff --git a/webengineviewer/src/webengineview.cpp b/webengineviewer/src/webengineview.cpp
index f2bb872..7f78406 100644
--- a/webengineviewer/src/webengineview.cpp
+++ b/webengineviewer/src/webengineview.cpp
@@ -25,10 +25,7 @@
#include <QKeyEvent>
#include <QMouseEvent>
#include <QWheelEvent>
-#include <QWebEngineProfile>
-#include <KLocalizedString>
-#include <QWebEngineDownloadItem>
using namespace WebEngineViewer;
diff --git a/webengineviewer/src/webhittest.h b/webengineviewer/src/webhittest.h
index 7c36259..0da217c 100644
--- a/webengineviewer/src/webhittest.h
+++ b/webengineviewer/src/webhittest.h
@@ -22,7 +22,6 @@
#include <QObject>
#include "webengineviewer_export.h"
-#include <QUrl>
#include <QPoint>
class QWebEnginePage;
namespace WebEngineViewer
diff --git a/webengineviewer/src/webhittestresult.h b/webengineviewer/src/webhittestresult.h
index e741b83..4f76f6b 100644
--- a/webengineviewer/src/webhittestresult.h
+++ b/webengineviewer/src/webhittestresult.h
@@ -41,7 +41,7 @@
#include <QUrl>
#include <QRect>
#include <QString>
-#include <QVariantMap>
+#include <QVariant>
namespace WebEngineViewer
{
diff --git a/webengineviewer/src/widgets/zoomactionmenu.cpp b/webengineviewer/src/widgets/zoomactionmenu.cpp
index 2bcd614..b6859ad 100644
--- a/webengineviewer/src/widgets/zoomactionmenu.cpp
+++ b/webengineviewer/src/widgets/zoomactionmenu.cpp
@@ -19,7 +19,6 @@
#include "zoomactionmenu.h"
#include <KLocalizedString>
-#include <KToggleAction>
#include <KActionCollection>
using namespace WebEngineViewer;