diff options
author | Jani Korteniemi <jani.korteniemi@qt.io> | 2021-07-26 13:42:14 +0300 |
---|---|---|
committer | Jani Korteniemi <jani.korteniemi@qt.io> | 2021-11-10 13:46:03 +0200 |
commit | 2eff5e431435f2b5be3511823400080d4029a6c1 (patch) | |
tree | 7d4647e00bdb463bc4bb29b85b445745bc18c0f3 /examples/demos/hangman/hangman.pro | |
parent | 28dd0b133435e044224c3141265e14f2a2586efc (diff) |
Add QtPurchasing module as an example under Qt demos
QtPurchasing module is deprecated in Qt6. However, the purchasing
code is moved as example/demo under qtdoc to demonstrate the use of
in-app purchases in Android/iOS.
The demo is under demos\hangman.
Few fixes done to the original code:
* Ported the code to Qt 6.
* Removed reinterpret_casts and QQmlListPropertys.
* Fixed few QML warnings.
* Added documentation
* Fixed documentation
* Added CMake port
* Fixed Cmake for iOS
* Modified Fonts in qml file
* project name changed from qthangmanpurchasing to hangman
Task-number: QTBUG-84776
Pick-to: 6.2
Change-Id: I86051b29d54cfb4a48b310ebc8d538c806fbf8da
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'examples/demos/hangman/hangman.pro')
-rw-r--r-- | examples/demos/hangman/hangman.pro | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/demos/hangman/hangman.pro b/examples/demos/hangman/hangman.pro new file mode 100644 index 000000000..bee39d28b --- /dev/null +++ b/examples/demos/hangman/hangman.pro @@ -0,0 +1,21 @@ +QT += quick qml quickcontrols2 + +INCLUDEPATH += purchasing/qmltypes \ + purchasing/inapp + +CONFIG += qmltypes +QML_IMPORT_PATH = $$PWD/hangmangame.h +QML_IMPORT_NAME = Hangman +QML_IMPORT_MAJOR_VERSION = 1 + +SOURCES += $$PWD/main.cpp \ + $$PWD/hangmangame.cpp + +HEADERS += $$PWD/hangmangame.h + +RESOURCES += resources.qrc + +target.path = $$[QT_INSTALL_EXAMPLES]/demos/hangman +INSTALLS += target + +include($$PWD/purchasing/purchasing.pri) |