diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2016-04-06 15:37:07 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2016-04-07 09:57:42 +0000 |
commit | e45a44834ea13e7648866b51eb6f9429668e9fb2 (patch) | |
tree | f8eaee84d2ed24426d32ec3715c61ab815225124 | |
parent | 892add20dffb5c6e492566c9a089021de0694891 (diff) |
Make Qt Quick example independent of widgetswip/speech-recognition
Change-Id: I4f1e81ce814e6c859066e52bbcb65cf4eb978a04
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
-rw-r--r-- | examples/speech/qmlspeech/main.cpp | 4 | ||||
-rw-r--r-- | examples/speech/qmlspeech/qmlspeech.pro | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/speech/qmlspeech/main.cpp b/examples/speech/qmlspeech/main.cpp index 4cc6d8a..bb2fc91 100644 --- a/examples/speech/qmlspeech/main.cpp +++ b/examples/speech/qmlspeech/main.cpp @@ -36,7 +36,7 @@ #include "qspeechrecognition.h" -#include <QApplication> +#include <QGuiApplication> #include <QQmlContext> #include <QQmlApplicationEngine> #include <QLoggingCategory> @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) { - QApplication app(argc, argv); + QGuiApplication app(argc, argv); QLoggingCategory::setFilterRules(QStringLiteral("qt.speech.asr=true \n qt.speech.asr.*=true")); QQmlApplicationEngine engine; diff --git a/examples/speech/qmlspeech/qmlspeech.pro b/examples/speech/qmlspeech/qmlspeech.pro index c5d1b8a..718cfeb 100644 --- a/examples/speech/qmlspeech/qmlspeech.pro +++ b/examples/speech/qmlspeech/qmlspeech.pro @@ -1,6 +1,6 @@ TEMPLATE = app -QT += qml quick widgets speechrecognition +QT += qml quick speechrecognition SOURCES += main.cpp |