Don't include QtQML
It includes LOTS of files we don't need
commit230e9589d38c48121e058056eec9173420c7901a
authorAlbert Astals <albert.astals@canonical.com>
dateFri 23 Aug 2013, 13:56 (13 years ago)
parent127a1d7
main.cpp−1
@@ -18,7 +18,6 @@
1818 */
1919
2020// Qt
21−#include <QtQml>
2221#include <QtQuick/QQuickView>
2322#include <QtGui/QIcon>
2423#include <QtGui/QGuiApplication>
plugins/LightDM/plugin.cpp+1−1
@@ -25,7 +25,7 @@
2525#include <QLightDM/UsersModel>
2626
2727#include <QtCore/QAbstractItemModel>
28−#include <QtQml>
28+#include <QtQml/qqml.h>
2929
3030static QObject *greeter_provider(QQmlEngine *engine, QJSEngine *scriptEngine)
3131{
plugins/Powerd/plugin.cpp+1−1
@@ -20,7 +20,7 @@
2020#include "plugin.h"
2121#include "Powerd.h"
2222
23−#include <QtQml/QtQml>
23+#include <QtQml/qqml.h>
2424
2525static QObject *powerd_provider(QQmlEngine *engine, QJSEngine *scriptEngine)
2626{
plugins/Ubuntu/DownloadDaemonListener/plugin.cpp+1−1
@@ -22,7 +22,7 @@
2222#include "plugin.h"
2323#include "DownloadTracker.h"
2424
25−#include <QtQml>
25+#include <QtQml/qqml.h>
2626#include <QtQml/QQmlContext>
2727
2828
plugins/Unity/Indicators/Network/plugin.cpp+1−1
@@ -17,7 +17,7 @@
1717 */
1818
1919// Qt
20−#include <QtQml>
20+#include <QtQml/qqml.h>
2121
2222// self
2323#include "plugin.h"
plugins/Unity/Indicators/plugin.cpp+1−1
@@ -18,7 +18,7 @@
1818 */
1919
2020// Qt
21−#include <QtQml>
21+#include <QtQml/qqml.h>
2222
2323// self
2424#include "plugin.h"
plugins/Unity/IndicatorsLegacy/Network/plugin.cpp+1−1
@@ -17,7 +17,7 @@
1717 */
1818
1919// Qt
20−#include <QtQml>
20+#include <QtQml/qqml.h>
2121
2222// self
2323#include "plugin.h"
plugins/Unity/IndicatorsLegacy/plugin.cpp+1−1
@@ -17,7 +17,7 @@
1717 */
1818
1919// Qt
20−#include <QtQml>
20+#include <QtQml/qqml.h>
2121
2222// self
2323#include "plugin.h"
plugins/Unity/Launcher/plugin.cpp+1−1
@@ -18,7 +18,7 @@
1818 */
1919
2020// Qt
21−#include <QtQml>
21+#include <QtQml/qqml.h>
2222
2323// self
2424#include "plugin.h"
plugins/Unity/plugin.cpp+2−1
@@ -17,8 +17,9 @@
1717 */
1818
1919// Qt
20−#include <QtQml>
2120#include <QDBusConnection>
21+#include <QQmlContext>
22+#include <qqml.h>
2223
2324// self
2425#include "plugin.h"
plugins/Utils/plugin.cpp+1−1
@@ -17,7 +17,7 @@
1717 */
1818
1919// Qt
20−#include <QtQml>
20+#include <QtQml/qqml.h>
2121#include <QtQuick/QQuickWindow>
2222
2323// self
tests/mocks/GSettings.1.0/fake_gsettings.h+1−1
@@ -18,7 +18,7 @@
1818#define FAKE_GSETTINGS_H
1919
2020#include <QList>
21−#include <QtQml>
21+#include <QObject>
2222
2323class GSettingsSchemaQml: public QObject
2424{
tests/mocks/GSettings.1.0/plugin.cpp+1−1
@@ -17,7 +17,7 @@
1717#include "plugin.h"
1818#include "fake_gsettings.h"
1919
20−#include <QtQml>
20+#include <QtQml/qqml.h>
2121
2222static QObject* controllerProvider(QQmlEngine* /* engine */, QJSEngine* /* scriptEngine */)
2323{
tests/mocks/Powerd/plugin.cpp+1−1
@@ -19,7 +19,7 @@
1919#include "plugin.h"
2020#include "Powerd.h"
2121
22−#include <QtQml/QtQml>
22+#include <QtQml/qqml.h>
2323
2424static QObject *powerd_provider(QQmlEngine *engine, QJSEngine *scriptEngine)
2525{
tests/mocks/Ubuntu/DownloadDaemonListener/plugin.cpp−1
@@ -17,7 +17,6 @@
1717#include "plugin.h"
1818#include "MockDownloadTracker.h"
1919
20−#include <QtQml>
2120#include <QtQml/QQmlContext>
2221#include <qqml.h>
2322
tests/mocks/Unity/Indicators/fakeplugin.cpp+1−1
@@ -17,7 +17,7 @@
1717 */
1818
1919// Qt
20−#include <QtQml>
20+#include <QtQml/qqml.h>
2121
2222// self
2323#include "fakeplugin.h"
tests/mocks/Unity/fake_unity_plugin.cpp+2−1
@@ -26,7 +26,8 @@
2626
2727// External
2828#include <glib-object.h>
29−#include <QtQml>
29+
30+#include <QtQml/qqml.h>
3031
3132void FakeUnityPlugin::registerTypes(const char *uri)
3233{
tests/utils/modules/Unity/Test/TouchEventSequenceWrapper.h+1−1
@@ -19,7 +19,7 @@
1919
2020#include <QtCore/QObject>
2121#include <QtTest/QTest>
22−#include <QtQml/QtQml>
22+#include <QtQml/qqml.h>
2323
2424class TouchEventSequenceWrapper : public QObject
2525{