aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/shell
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-02-18 14:38:43 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-21 17:43:19 +0100
commit4ff32bdc505054cf73fdd55783391fdf628fe29e (patch)
tree11267e7e518110483260bc4016aa9be1364d79a7 /examples/qml/shell
parentf04011afa242f3c63b6670143a38093dc8d40a46 (diff)
the shell example and a bunch of reference examples need no QtGui
Task-number: QTBUG-36893 Change-Id: I51e402c90bd727cd3066788e0864e887ab8cb9e4 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'examples/qml/shell')
-rw-r--r--examples/qml/shell/main.cpp4
-rw-r--r--examples/qml/shell/shell.pro2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/qml/shell/main.cpp b/examples/qml/shell/main.cpp
index 45701027f4..4e8e57ab17 100644
--- a/examples/qml/shell/main.cpp
+++ b/examples/qml/shell/main.cpp
@@ -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();
diff --git a/examples/qml/shell/shell.pro b/examples/qml/shell/shell.pro
index da97590189..9215108e6d 100644
--- a/examples/qml/shell/shell.pro
+++ b/examples/qml/shell/shell.pro
@@ -1,4 +1,4 @@
-QT += qml
+QT = core qml
win32: CONFIG += console
mac:CONFIG -= app_bundle