the shell example and a bunch of reference examples need no QtGui
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Tue, 18 Feb 2014 13:38:43 +0000 (14:38 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 21 Feb 2014 16:43:19 +0000 (17:43 +0100)
Task-number: QTBUG-36893
Change-Id: I51e402c90bd727cd3066788e0864e887ab8cb9e4
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
examples/qml/referenceexamples/adding/adding.pro
examples/qml/referenceexamples/coercion/coercion.pro
examples/qml/referenceexamples/default/default.pro
examples/qml/referenceexamples/methods/methods.pro
examples/qml/referenceexamples/properties/properties.pro
examples/qml/shell/main.cpp
examples/qml/shell/shell.pro

index 602898f..ae135c7 100644 (file)
@@ -1,4 +1,4 @@
-QT += qml
+QT = core qml
 
 SOURCES += main.cpp \
            person.cpp
index 7fca26c..373a15f 100644 (file)
@@ -1,4 +1,4 @@
-QT += qml
+QT = core qml
 
 SOURCES += main.cpp \
            person.cpp \
index c43867f..c119ef0 100644 (file)
@@ -1,4 +1,4 @@
-QT += qml
+QT = core qml
 
 SOURCES += main.cpp \
            person.cpp \
index 911a460..008ba19 100644 (file)
@@ -1,4 +1,4 @@
-QT += qml
+QT = core qml
 
 SOURCES += main.cpp \
            person.cpp \
index 4570102..4e8e57a 100644 (file)
@@ -44,7 +44,7 @@
 #include <QtCore/qstringlist.h>
 #include <QtCore/qscopedpointer.h>
 
-#include <QtGui/QGuiApplication>
+#include <QtCore/QCoreApplication>
 
 #include <QtQml/qjsengine.h>
 
@@ -95,7 +95,7 @@ static void interactive(QJSEngine *eng)
 
 int main(int argc, char *argv[])
 {
-    QGuiApplication app(argc, argv);
+    QCoreApplication app(argc, argv);
     QScopedPointer<QJSEngine> eng(new QJSEngine());
     {
         QJSValue globalObject = eng->globalObject();
index da97590..9215108 100644 (file)
@@ -1,4 +1,4 @@
-QT += qml
+QT = core qml
 
 win32: CONFIG += console
 mac:CONFIG -= app_bundle