qt: Fix some includes
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 12 Sep 2016 08:52:10 +0000 (10:52 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 12 Sep 2016 08:52:10 +0000 (10:52 +0200)
* lang/qt/src/qgpgmekeyformailboxjob.cpp: Explicitly include
QStringList.
* lang/qt/tests/t-support.h, lang/qt/tests/t-support.cpp: Move
includes into impl. Explicitly include QDir.

--
This fixes build against Qt versions where the includes are less
implicit.

lang/qt/src/qgpgmekeyformailboxjob.cpp
lang/qt/tests/t-support.cpp
lang/qt/tests/t-support.h

index 0702a36..803d0e6 100644 (file)
@@ -33,6 +33,8 @@
 #include "qgpgmekeyformailboxjob.h"
 #include "qgpgmekeylistjob.h"
 
+#include <QStringList>
+
 #include <tuple>
 
 using namespace GpgME;
index 2b21ce7..86372f7 100644 (file)
 
 #include <QTest>
 
+#include <QProcess>
+#include <QCoreApplication>
+#include <QObject>
+#include <QDir>
+
 void QGpgMETest::initTestCase()
 {
     const QString gpgHome = qgetenv("GNUPGHOME");
index 74163b1..59d9a4d 100644 (file)
@@ -32,9 +32,6 @@
 #define T_SUPPORT_H
 
 #include "interfaces/passphraseprovider.h"
-#include <QtGlobal>
-#include <QProcess>
-#include <QCoreApplication>
 #include <QObject>
 
 namespace GpgME