summaryrefslogtreecommitdiff
path: root/examples/ivivehiclefunctions
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ivivehiclefunctions')
-rw-r--r--examples/ivivehiclefunctions/climate_qml/climate_qml.pro2
-rw-r--r--examples/ivivehiclefunctions/climate_qml/main.cpp4
-rw-r--r--examples/ivivehiclefunctions/ivivehiclefunctions.pro3
-rw-r--r--examples/ivivehiclefunctions/window_qml/main.cpp4
-rw-r--r--examples/ivivehiclefunctions/window_qml/window_qml.pro2
5 files changed, 8 insertions, 7 deletions
diff --git a/examples/ivivehiclefunctions/climate_qml/climate_qml.pro b/examples/ivivehiclefunctions/climate_qml/climate_qml.pro
index 07ba83d..6c44293 100644
--- a/examples/ivivehiclefunctions/climate_qml/climate_qml.pro
+++ b/examples/ivivehiclefunctions/climate_qml/climate_qml.pro
@@ -1,6 +1,6 @@
TEMPLATE = app
-QT += qml quick widgets
+QT += qml quick
SOURCES += main.cpp
diff --git a/examples/ivivehiclefunctions/climate_qml/main.cpp b/examples/ivivehiclefunctions/climate_qml/main.cpp
index 192c982..eeffc04 100644
--- a/examples/ivivehiclefunctions/climate_qml/main.cpp
+++ b/examples/ivivehiclefunctions/climate_qml/main.cpp
@@ -51,12 +51,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:/main.qml")));
diff --git a/examples/ivivehiclefunctions/ivivehiclefunctions.pro b/examples/ivivehiclefunctions/ivivehiclefunctions.pro
index 121e7e3..19ff424 100644
--- a/examples/ivivehiclefunctions/ivivehiclefunctions.pro
+++ b/examples/ivivehiclefunctions/ivivehiclefunctions.pro
@@ -1,6 +1,7 @@
TEMPLATE = subdirs
SUBDIRS += \
- climate_widget \
climate_qml \
window_qml
+
+qtHaveModule(widgets): SUBDIRS += climate_widget
diff --git a/examples/ivivehiclefunctions/window_qml/main.cpp b/examples/ivivehiclefunctions/window_qml/main.cpp
index 192c982..eeffc04 100644
--- a/examples/ivivehiclefunctions/window_qml/main.cpp
+++ b/examples/ivivehiclefunctions/window_qml/main.cpp
@@ -51,12 +51,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:/main.qml")));
diff --git a/examples/ivivehiclefunctions/window_qml/window_qml.pro b/examples/ivivehiclefunctions/window_qml/window_qml.pro
index 98368a3..19ec158 100644
--- a/examples/ivivehiclefunctions/window_qml/window_qml.pro
+++ b/examples/ivivehiclefunctions/window_qml/window_qml.pro
@@ -1,6 +1,6 @@
TEMPLATE = app
-QT += qml quick widgets
+QT += qml quick
SOURCES += main.cpp