summaryrefslogtreecommitdiffstats
path: root/examples/scxml/trafficlight-qml-dynamic
Commit message (Collapse)AuthorAgeFilesLines
* Qt6 related documentation changes for scxml moduleJuha Vuolle2021-02-112-10/+15
| | | | | | | | | | | | | | | | | | | | Some perhaps less-obvious changes are: -Remove nonexistent imagedirs reference in qdocconf -Address some qdoc warnings (“/“ usage in an example and also std::function handling) -Fix ftpclient example filename references -Mark an escaped Q_OBJECT usage as badcode to suppress qdoc warning The Q_OBJECT itself cannot be unescaped as automoc will then fail. It shouldn't but that is the case. -Change the examples’ CMakeLists.txt to use single-line find_packages to ensure packages are not mixed and matched. Probability for problems is low but perhaps since these are examples that is appropriate Task-number: QTBUG-89833 Change-Id: Ibf518aa71971e8e9d0af1b49c7de86fd28089e96 Reviewed-by: Paul Wicking <paul.wicking@qt.io> (cherry picked from commit 84c7967a6c9fc13b2e588b029030546fa6f8b92e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QML versioning and registration update for QtScxmlJuha Vuolle2021-01-291-1/+1
| | | | | | | | | | | | The main changes: -QML element versioning so that “import QtScxml” works from version 5.8 to latest 6.x -QML element registration to use the newish QML_ELEMENT and friends -Automatic plugins.qmltypes generation during build Task-number: QTBUG-89832 Change-Id: If6b031fbbe4b4143f4fad626c9a71f55e571491a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Re-generate all CMake filesJoerg Bornemann2021-01-191-2/+10
| | | | | Change-Id: I40dd28da4ba47bd15471b471138900cd22b4e409 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Regenerate before mergeAlexandru Croitor2019-10-151-2/+2
| | | | | Change-Id: Ib78bff1d61ee9526b9e3373dbf109ae4d2dd81dc Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Port QtScxml to CMakeJoerg Bornemann2019-09-261-0/+86
| | | | | | Change-Id: I227f18b6a9825b6974eab6ba9feaf62bd0934133 Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Update plugins.qmltypesUlf Hermann2016-09-271-2/+2
| | | | | | | | | | | | | | | Also, have the extended state machine type follow the usual naming scheme, and increment the minor version everywhere. Since we don't need to be compatible with 5.7 we don't need to drag the 5.7 version around at all. In addition, we also don't need to namespace QtScxml in any QML context and, using the additional type information, we can easily constrain the types of all state machiens in QML. The fromFile() and fromData() methods don't have to be Q_INVOKABLE and that just confuses qmlplugindump, do drop Q_INVOKABLE there. Change-Id: I7bd3f10ac458d64fcb98caece770b5d4c61abdb5 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* Doc: Fix the snippets in Traffic Light QML example docsLeena Miettinen2016-09-081-4/+3
| | | | | Change-Id: I8ddb470e61c5a19b8bd673d2b8e8d920e1f47efd Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* Rename StateMachineLoader.filename to "source"Ulf Hermann2016-09-061-1/+1
| | | | | | | | | It's a URL, so it shouldn't be called filename. Otherwise people will try to use it with plain filenames, omitting the qrc:// or file:// prefix. Change-Id: I01be8515ba03c58c0dd1fce6b0e1e5fa413b9839 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Examples: Use a proper type for the stateMachine propertyThomas Hartmann2016-09-021-0/+9
| | | | | | | | This is required to get auto completion working in TrafficLight.qml. (At least for the static case) Change-Id: I9fd3ca64ff92b62cb30e0c66eab20c60995ff911 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Examples: Use .ui file for trafficlightThomas Hartmann2016-09-021-0/+1
| | | | | | | | This decouples the logic/implementation from the declarative ui definition. Change-Id: I039b754df2b9ca86279fe8e9fb9bba23e9c49bf6 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Auto-include qscxmlc in module configUlf Hermann2016-07-151-2/+0
| | | | | | | | This enables us to drop all the load(qscxmlc) declarations in the various .pro files. Change-Id: I37e0ddba76be1c4c79dea1302634f62a22032ee2 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Improve QtScxml module conformity to other Qt modulesAlex Blasche2016-05-171-1/+1
| | | | | | | | | | The other QML modules use a versioning based on the Qt modules version. In addition the QML plugin name is always libdeclarative_<module_name>.so. Therefore the target for the QML project has to be adjusted accordingly. Change-Id: I218836bc01a7cb4ab8d8c3edde1d3d6deeaffd75 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Cleanup and rename QML scxmlstatemachine pluginAlex Blasche2016-05-122-2/+2
| | | | | | | | | The Qt modules use the Qt prefix and the project file should rely on qmake's qml_plugin logic. Change-Id: I9a13109d6307679c1e7362680eaf9c33e2bdda3b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Polish traffic light exampleUlf Hermann2016-03-222-4/+9
| | | | | | | Change-Id: I85f56f87b985ff966b975c571a399fa8f1f6e86f Reviewed-by: Diana de Sousa <diana.desousa@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* Doc: Add docs for the Traffic Light exampleLeena Miettinen2016-03-171-2/+36
| | | | | Change-Id: Id51e2cb7eaf04179efe5379ac82f596ede3f6b04 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Examples: Return on QML load error.Friedemann Kleint2016-02-251-0/+2
| | | | | | | | Prevents hanging processes should an error while loading QML occur. Change-Id: I35f68ef170755f075fe95e2e535e363a49c598ee Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Move examples into module based subdirAlex Blasche2016-02-125-0/+179
The release process puts all examples based on their module name into the same directory. Therefore each module has to group its examples based on their module name. Change-Id: I3695297ff0489fbbb2c4f4aa13e0c4baa7f011b7 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>