Fix examples installation

Had to add one folder to the examples structure so
installation works correctly.

Change-Id: Ic92dfe9997413a6243abcf5eeba12744ba9e938c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
This commit is contained in:
Miikka Heikkinen 2014-02-13 09:59:52 +02:00
parent ecabd51692
commit 88cd10aa7b
191 changed files with 79 additions and 151 deletions

View File

@ -1,2 +1,4 @@
MODULE_VERSION=1.0.0
load(qt_build_config) load(qt_build_config)
CONFIG += qt_example_installs
MODULE_VERSION=1.0.0

View File

@ -12,9 +12,3 @@ SOURCES += main.cpp \
HEADERS += audiolevels.h \ HEADERS += audiolevels.h \
audiolevelsiodevice.h audiolevelsiodevice.h
INSTALLS += target
OTHER_FILES += doc/src/* \
doc/images/*

View File

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 118 KiB

View File

@ -6,8 +6,3 @@ SOURCES += main.cpp graphmodifier.cpp
HEADERS += graphmodifier.h HEADERS += graphmodifier.h
QT += widgets QT += widgets
INSTALLS += target
OTHER_FILES += doc/src/* \
doc/images/*

View File

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 148 KiB

View File

@ -9,9 +9,4 @@ HEADERS += scatterdatamodifier.h \
QT += widgets QT += widgets
INSTALLS += target
RESOURCES += custominput.qrc RESOURCES += custominput.qrc
OTHER_FILES += doc/src/* \
doc/images/*

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -14,11 +14,7 @@ HEADERS += \
variantbardataproxy.h \ variantbardataproxy.h \
variantbardatamapping.h variantbardatamapping.h
INSTALLS += target
RESOURCES += customproxy.qrc RESOURCES += customproxy.qrc
OTHER_FILES += data/raindata.txt \ OTHER_FILES += data/raindata.txt
doc/src/* \
doc/images/*

View File

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

View File

@ -0,0 +1,21 @@
TEMPLATE = subdirs
SUBDIRS += qmlbars \
qmlscatter \
qmlsurface \
qmlcustominput \
qmllegend \
qmlmultigraph \
qmloscilloscope \
qmlsurfacelayers
!android:!ios {
SUBDIRS += bars \
custominput \
customproxy \
itemmodel \
scatter \
surface \
rotations
}
qtHaveModule(multimedia):!android:!ios: SUBDIRS += audiolevels

View File

@ -0,0 +1,13 @@
INCLUDEPATH += ../../../include
LIBS += -L$$OUT_PWD/../../../lib
TEMPLATE = app
QT += datavisualization
target.path = $$[QT_INSTALL_EXAMPLES]/datavisualization/$$TARGET
INSTALLS += target
OTHER_FILES += doc/src/* \
doc/images/*

View File

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -4,9 +4,4 @@
SOURCES += main.cpp SOURCES += main.cpp
INSTALLS += target
QT += widgets QT += widgets
OTHER_FILES += doc/src/* \
doc/images/*

View File

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 146 KiB

View File

@ -34,12 +34,13 @@ int main(int argc, char *argv[])
// The following are needed to make examples run without having to install the module // The following are needed to make examples run without having to install the module
// in desktop environments. // in desktop environments.
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
viewer.addImportPath(QString::fromLatin1("%1/../../../%2").arg(QGuiApplication::applicationDirPath(), QString extraImportPath(QStringLiteral("%1/../../../../%2"));
QString::fromLatin1("qml")));
#else #else
viewer.addImportPath(QString::fromLatin1("%1/../../%2").arg(QGuiApplication::applicationDirPath(), QString extraImportPath(QStringLiteral("%1/../../../%2"));
QString::fromLatin1("qml")));
#endif #endif
viewer.addImportPath(extraImportPath.arg(QGuiApplication::applicationDirPath(),
QString::fromLatin1("qml")));
viewer.setTitle(QStringLiteral("Monthly income/expenses")); viewer.setTitle(QStringLiteral("Monthly income/expenses"));
viewer.setSource(QUrl("qrc:/qml/qmlbars/main.qml")); viewer.setSource(QUrl("qrc:/qml/qmlbars/main.qml"));

View File

@ -18,6 +18,3 @@ include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment() qtcAddDeployment()
RESOURCES += qmlbars.qrc RESOURCES += qmlbars.qrc
OTHER_FILES += doc/src/* \
doc/images/*

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -34,12 +34,13 @@ int main(int argc, char *argv[])
// The following are needed to make examples run without having to install the module // The following are needed to make examples run without having to install the module
// in desktop environments. // in desktop environments.
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
viewer.addImportPath(QString::fromLatin1("%1/../../../%2").arg(QGuiApplication::applicationDirPath(), QString extraImportPath(QStringLiteral("%1/../../../../%2"));
QString::fromLatin1("qml")));
#else #else
viewer.addImportPath(QString::fromLatin1("%1/../../%2").arg(QGuiApplication::applicationDirPath(), QString extraImportPath(QStringLiteral("%1/../../../%2"));
QString::fromLatin1("qml")));
#endif #endif
viewer.addImportPath(extraImportPath.arg(QGuiApplication::applicationDirPath(),
QString::fromLatin1("qml")));
viewer.setTitle(QStringLiteral("QML Custom Input")); viewer.setTitle(QStringLiteral("QML Custom Input"));
viewer.setSource(QUrl("qrc:/qml/qmlcustominput/main.qml")); viewer.setSource(QUrl("qrc:/qml/qmlcustominput/main.qml"));

View File

@ -19,6 +19,3 @@ qtcAddDeployment()
RESOURCES += \ RESOURCES += \
qmlcustominput.qrc qmlcustominput.qrc
OTHER_FILES += doc/src/* \
doc/images/*

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

View File

@ -34,12 +34,13 @@ int main(int argc, char *argv[])
// The following are needed to make examples run without having to install the module // The following are needed to make examples run without having to install the module
// in desktop environments. // in desktop environments.
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
viewer.addImportPath(QString::fromLatin1("%1/../../../%2").arg(QGuiApplication::applicationDirPath(), QString extraImportPath(QStringLiteral("%1/../../../../%2"));
QString::fromLatin1("qml")));
#else #else
viewer.addImportPath(QString::fromLatin1("%1/../../%2").arg(QGuiApplication::applicationDirPath(), QString extraImportPath(QStringLiteral("%1/../../../%2"));
QString::fromLatin1("qml")));
#endif #endif
viewer.addImportPath(extraImportPath.arg(QGuiApplication::applicationDirPath(),
QString::fromLatin1("qml")));
viewer.setTitle(QStringLiteral("Legend example")); viewer.setTitle(QStringLiteral("Legend example"));
viewer.setSource(QUrl("qrc:/qml/qmllegend/main.qml")); viewer.setSource(QUrl("qrc:/qml/qmllegend/main.qml"));

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -34,12 +34,13 @@ int main(int argc, char *argv[])
// The following are needed to make examples run without having to install the module // The following are needed to make examples run without having to install the module
// in desktop environments. // in desktop environments.
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
viewer.addImportPath(QString::fromLatin1("%1/../../../%2").arg(QGuiApplication::applicationDirPath(), QString extraImportPath(QStringLiteral("%1/../../../../%2"));
QString::fromLatin1("qml")));
#else #else
viewer.addImportPath(QString::fromLatin1("%1/../../%2").arg(QGuiApplication::applicationDirPath(), QString extraImportPath(QStringLiteral("%1/../../../%2"));
QString::fromLatin1("qml")));
#endif #endif
viewer.addImportPath(extraImportPath.arg(QGuiApplication::applicationDirPath(),
QString::fromLatin1("qml")));
viewer.setTitle(QStringLiteral("QML multigraph example")); viewer.setTitle(QStringLiteral("QML multigraph example"));
viewer.setSource(QUrl("qrc:/qml/qmlmultigraph/main.qml")); viewer.setSource(QUrl("qrc:/qml/qmlmultigraph/main.qml"));
viewer.setResizeMode(QQuickView::SizeRootObjectToView); viewer.setResizeMode(QQuickView::SizeRootObjectToView);

View File

@ -18,6 +18,3 @@ include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment() qtcAddDeployment()
RESOURCES += qmlmultigraph.qrc RESOURCES += qmlmultigraph.qrc
OTHER_FILES += doc/src/* \
doc/images/*

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Some files were not shown because too many files have changed in this diff Show More