the poster example needs no widgets, but it needs quick

Task-number: QTBUG-36893
Change-Id: Ic77fe07aa450001386be0b2e0d4a99f2e674dbb2
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
This commit is contained in:
Oswald Buddenhagen 2014-02-18 15:28:48 +01:00 committed by The Qt Project
parent b4bde05d84
commit 0156038682
3 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,10 @@ TEMPLATE = subdirs
qtHaveModule(widgets) {
SUBDIRS += \
annotatedurl \
ndefeditor \
ndefeditor
}
qtHaveModule(quick) {
SUBDIRS += \
poster
}

View File

@ -1,4 +1,4 @@
QT += qml quick network nfc widgets
QT += qml quick network nfc
SOURCES += \
qmlposter.cpp

View File

@ -38,13 +38,13 @@
**
****************************************************************************/
#include <QtWidgets/QApplication>
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlEngine>
#include <QtQuick/QQuickView>
int main(int argc, char *argv[])
{
QApplication application(argc, argv);
QGuiApplication application(argc, argv);
const QString mainQmlApp = QLatin1String("qrc:/poster.qml");
QQuickView view;
view.setSource(QUrl(mainQmlApp));