aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qml
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2014-03-09 23:27:34 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-10 15:04:11 +0100
commit50f8133a1a1eb434abafcca5335be706d4f0b694 (patch)
tree5139515a7e44e860a19b016c65ba139ea6ce8a76 /tools/qml
parentfe2de633f9b9454ec8a9c2a5874ad85f49d8d54d (diff)
Remove several uses of module includes
Module includes are discouraged because they may increase compilation time. While debugging a broken core module include header, a number of module include infractions were discovered in qtdeclarative. Replace them with their more specific counterparts. Change-Id: I614e9a6aa2177f396e5289f3cdb3c35faa0202c9 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'tools/qml')
-rw-r--r--tools/qml/conf.h3
-rw-r--r--tools/qml/main.cpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/tools/qml/conf.h b/tools/qml/conf.h
index 24ea44edb9..47e5f2d3f7 100644
--- a/tools/qml/conf.h
+++ b/tools/qml/conf.h
@@ -41,7 +41,8 @@
#ifndef CONF_H
#define CONF_H
-#include <QtQml>
+#include <QtQml/QQmlContext>
+#include <QtQml/QQmlListProperty>
#include <QObject>
#include <QUrl>
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp
index 804241f023..08095962be 100644
--- a/tools/qml/main.cpp
+++ b/tools/qml/main.cpp
@@ -53,12 +53,15 @@
#endif // QT_GUI_LIB
#include <QQmlApplicationEngine>
+#include <QQmlComponent>
+#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QRegularExpression>
#include <QStringList>
#include <QDebug>
#include <QStandardPaths>
+#include <QTranslator>
#include <QtGlobal>
#include <qqml.h>
#include <qqmldebug.h>