summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-06-09 10:19:38 +0200
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2015-06-09 10:02:01 +0000
commit1bf6fd620a16e7d9e7b1eebdefa60164eef609d0 (patch)
tree47184e452aa139fa7c92bf3cd5892b5f27c64f3d
parent6969b19237c4dc763351723794e32e9da9aee246 (diff)
Fix compilation error in tests
Commit 947e85b47c caused QDomElement to be referenced in the headers included by the testcases. Rather forward declare it to avoid having to add QT += xml to all tests. Change-Id: I85427efb5d76eea7b086382ff2dbe823faeecdad Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
-rw-r--r--src/libs/kdtools/kdupdaterupdatesinfo.cpp1
-rw-r--r--src/libs/kdtools/kdupdaterupdatesinfodata_p.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/kdtools/kdupdaterupdatesinfo.cpp b/src/libs/kdtools/kdupdaterupdatesinfo.cpp
index ffc907923..a5b1b0a86 100644
--- a/src/libs/kdtools/kdupdaterupdatesinfo.cpp
+++ b/src/libs/kdtools/kdupdaterupdatesinfo.cpp
@@ -34,6 +34,7 @@
#include "kdupdaterupdatesinfo_p.h"
+#include <QDomDocument>
#include <QFile>
#include <QLocale>
#include <QUrl>
diff --git a/src/libs/kdtools/kdupdaterupdatesinfodata_p.h b/src/libs/kdtools/kdupdaterupdatesinfodata_p.h
index 786c96f1c..402c25567 100644
--- a/src/libs/kdtools/kdupdaterupdatesinfodata_p.h
+++ b/src/libs/kdtools/kdupdaterupdatesinfodata_p.h
@@ -36,9 +36,10 @@
#define KD_UPDATER_UPDATE_INFO_DATA_H
#include <QCoreApplication>
-#include <QDomElement>
#include <QSharedData>
+QT_FORWARD_DECLARE_CLASS(QDomElement)
+
namespace KDUpdater {
struct UpdateInfo;