aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2016-02-13 21:02:34 +0000
committerMike Krus <mike.krus@kdab.com>2016-02-23 16:29:34 +0000
commit567c0a3f11ac2752d1bb8796bc9c52546d95b2b3 (patch)
tree3ab60439bd4926304d729612173a112d64de6067
parent2a97ef5b63887c2f25829ec91bf193d3b3eba173 (diff)
Remove widgets dependency for quickGamepad
Change-Id: I32472391bb6b7b0c6f6f90f7164f8c5f0cbad660 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
-rw-r--r--examples/examples.pro5
-rw-r--r--examples/quickGamepad/main.cpp4
-rw-r--r--examples/quickGamepad/quickGamepad.pro2
3 files changed, 5 insertions, 6 deletions
diff --git a/examples/examples.pro b/examples/examples.pro
index aa36739..3d59471 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -3,11 +3,10 @@ TEMPLATE = subdirs
SUBDIRS += simple
qtHaveModule(quick) {
- SUBDIRS += configureButtons
+ SUBDIRS += configureButtons quickGamepad
qtHaveModule(widgets) {
- SUBDIRS += quickGamepad \
- keyNavigation \
+ SUBDIRS += keyNavigation \
mouseItem
}
}
diff --git a/examples/quickGamepad/main.cpp b/examples/quickGamepad/main.cpp
index 188b215..360e0c8 100644
--- a/examples/quickGamepad/main.cpp
+++ b/examples/quickGamepad/main.cpp
@@ -38,12 +38,12 @@
**
****************************************************************************/
-#include <QApplication>
+#include <QGuiApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
- QApplication app(argc, argv);
+ QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
diff --git a/examples/quickGamepad/quickGamepad.pro b/examples/quickGamepad/quickGamepad.pro
index 1cdc565..9763ef9 100644
--- a/examples/quickGamepad/quickGamepad.pro
+++ b/examples/quickGamepad/quickGamepad.pro
@@ -1,6 +1,6 @@
TEMPLATE = app
-QT += qml quick widgets
+QT += qml quick gamepad
SOURCES += main.cpp