diff options
author | Topi Reinio <topi.reinio@digia.com> | 2014-09-26 15:00:14 +0200 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@digia.com> | 2014-09-30 12:33:22 +0200 |
commit | fccf0e29120f64a8b9b2a15b33971a648ab190e7 (patch) | |
tree | 5e68eea9f4303408c93771596a28031de060e8cf /examples/qml/tutorials/extending-qml/chapter6-plugins/import/import.pro | |
parent | c2c710e5a8d66fa696276aa69c2e3b00436eefe5 (diff) |
Doc: Combine the extending QML tutorial chapters into a single example
Combine the six examples associated with each tutorial chapter
into a single, top-level example project 'extending-qml', with
subprojects for each of the tutorial chapters.
Clean up the docs, add links, and a note about a warning that
the user may see when running the code in the first chapter.
Task-number: QTBUG-32947
Change-Id: Idba4e2153817ab29f1afaf1947d1f2e25964e7b3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Diffstat (limited to 'examples/qml/tutorials/extending-qml/chapter6-plugins/import/import.pro')
-rw-r--r-- | examples/qml/tutorials/extending-qml/chapter6-plugins/import/import.pro | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/import/import.pro b/examples/qml/tutorials/extending-qml/chapter6-plugins/import/import.pro new file mode 100644 index 0000000000..cefcf3b477 --- /dev/null +++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/import/import.pro @@ -0,0 +1,26 @@ +TEMPLATE = lib +CONFIG += plugin +QT += qml quick + +DESTDIR = ../Charts +TARGET = $$qtLibraryTarget(chartsplugin) + +HEADERS += piechart.h \ + pieslice.h \ + chartsplugin.h + +SOURCES += piechart.cpp \ + pieslice.cpp \ + chartsplugin.cpp + +DESTPATH=$$[QT_INSTALL_EXAMPLES]/qml/tutorials/extending-qml/chapter6-plugins/Charts + +target.path=$$DESTPATH +qmldir.files=$$PWD/qmldir +qmldir.path=$$DESTPATH +INSTALLS += target qmldir + +OTHER_FILES += qmldir + +# Copy the qmldir file to the same folder as the plugin binary +QMAKE_POST_LINK += $$QMAKE_COPY $$replace($$list($$quote($$PWD/qmldir) $$DESTDIR), /, $$QMAKE_DIR_SEP) |