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>
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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/*
|
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
|
|
@ -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/*
|
|
||||||
|
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 148 KiB |
|
|
@ -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/*
|
|
||||||
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
|
|
@ -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/*
|
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
|
|
@ -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
|
||||||
|
|
@ -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/*
|
||||||
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
|
@ -4,9 +4,4 @@
|
||||||
|
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
|
||||||
INSTALLS += target
|
|
||||||
|
|
||||||
QT += widgets
|
QT += widgets
|
||||||
|
|
||||||
OTHER_FILES += doc/src/* \
|
|
||||||
doc/images/*
|
|
||||||
|
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 146 KiB |
|
|
@ -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"));
|
||||||
|
|
@ -18,6 +18,3 @@ include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
|
||||||
qtcAddDeployment()
|
qtcAddDeployment()
|
||||||
|
|
||||||
RESOURCES += qmlbars.qrc
|
RESOURCES += qmlbars.qrc
|
||||||
|
|
||||||
OTHER_FILES += doc/src/* \
|
|
||||||
doc/images/*
|
|
||||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
|
@ -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"));
|
||||||
|
|
@ -19,6 +19,3 @@ qtcAddDeployment()
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
qmlcustominput.qrc
|
qmlcustominput.qrc
|
||||||
|
|
||||||
OTHER_FILES += doc/src/* \
|
|
||||||
doc/images/*
|
|
||||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
|
|
@ -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"));
|
||||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
|
|
@ -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);
|
||||||
|
|
@ -18,6 +18,3 @@ include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
|
||||||
qtcAddDeployment()
|
qtcAddDeployment()
|
||||||
|
|
||||||
RESOURCES += qmlmultigraph.qrc
|
RESOURCES += qmlmultigraph.qrc
|
||||||
|
|
||||||
OTHER_FILES += doc/src/* \
|
|
||||||
doc/images/*
|
|
||||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |