From 4ff32bdc505054cf73fdd55783391fdf628fe29e Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 18 Feb 2014 14:38:43 +0100 Subject: the shell example and a bunch of reference examples need no QtGui Task-number: QTBUG-36893 Change-Id: I51e402c90bd727cd3066788e0864e887ab8cb9e4 Reviewed-by: Alan Alpert --- examples/qml/shell/main.cpp | 4 ++-- examples/qml/shell/shell.pro | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/qml/shell') 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 #include -#include +#include #include @@ -95,7 +95,7 @@ static void interactive(QJSEngine *eng) int main(int argc, char *argv[]) { - QGuiApplication app(argc, argv); + QCoreApplication app(argc, argv); QScopedPointer 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 -- cgit v1.2.3