summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add changes file for 5.9.0v5.9.0-rc2v5.9.0-rc1v5.9.0Jani Heikkinen2017-05-111-0/+25
| | | | | | | | Listing important changes and bug-fixes. Change-Id: Ic1f2594bf15932dc8b687f1071cbded32c4c2e45 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix bundling of module for static buildsv5.9.0-beta4Julian Strobl2017-05-051-0/+8
| | | | | | | | | | | | | | Without this patch the module is not bundled in static builds correctly causing 'module "<QtModule>" is not installed' errors in during runtime. As reference: this happens, because 'QQmlMetaType::isAnyModule(importUri)' at 'qtdeclarative/src/qml/qml/qqmltypeloader.cpp:1422:' returns 'false', which indicates that the module was not registered. Task-number: QTBUG-59559 Change-Id: If57fca92a0e04b9e04f1adb59dae0e4e9a3dcccb Reviewed-by: J-P Nurmi <jpnurmi@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Merge remote-tracking branch 'origin/5.8' into 5.9v5.9.0-beta3Liang Qi2017-04-181-0/+1
|\ | | | | | | Change-Id: Id25692bc7d3915c4b9129e644e3bdd6cc35e6a68
| * Kill the timer when we no longer need it5.8Andy Shaw2017-03-081-0/+1
| | | | | | | | | | | | Change-Id: I126a3479fe494eca5a616a5754b86bff4cbc022a Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* | Fix build without features.commandlineparserv5.9.0-beta2Tasuku Suzuki2017-04-031-1/+1
| | | | | | | | | | Change-Id: I47398d653d4d3a9655e8d4480ffe4f7c3472e67b Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* | Doc: Fix QML property types and method signaturesv5.9.0-beta1Leena Miettinen2017-03-234-9/+16
| | | | | | | | | | Change-Id: I2b7897015a743cf70847270117ada881559ce7c9 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | Doc: Add docs for the InvokedServices QML typeLeena Miettinen2017-03-211-0/+33
| | | | | | | | | | Change-Id: I87279e065b7ea3ca7bcd9100bc2d36a5e5b677c9 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | Doc: Add docs for the EventConnection QML typeLeena Miettinen2017-03-211-0/+37
| | | | | | | | | | Change-Id: I0b4c93797fa076e6360c92badea551b01acef644 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | Doc: Remove docs for property changed signalsLeena Miettinen2017-03-211-13/+2
| | | | | | | | | | | | | | The convention is not to document them. Change-Id: I9d133e05a4d2b15b47bfb3ce06b07c661534a17c Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | Doc: Add docs for the ScxmlStateMachine QML typeLeena Miettinen2017-03-211-0/+231
| | | | | | | | | | Change-Id: I34310fcad96a8c2a7f2e38512a6452e7f254d820 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | Doc: Showcase the "StateMachine" QML typeUlf Hermann2017-03-161-1/+1
| | | | | | | | | | | | | | | | You don't need to use QtObject to store a state machine in QML as we conveniently register a type for you. Change-Id: I21c774e6d11ad0576f8ec76f3303368fe355b4b5 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
* | Merge remote-tracking branch 'origin/5.8' into 5.9Liang Qi2017-03-1025-70/+175
|\| | | | | | | Change-Id: I467bf942ab818d350a1c08c8567566b9bbfcb5a5
| * Switch to using QQmlExtensionInterface IDRobin Burchell2017-02-081-1/+1
| | | | | | | | | | | | | | | | This is required by tst_qqmlextensionplugin, and was wrong in scxml. Change-Id: I4c7bc12306a218724db5939a8a2c996cd7c092fe Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| * Make the content/expr test compliantUlf Hermann2017-02-082-7/+16
| | | | | | | | | | | | | | | | | | We cannot add both an 'event' attribute and a <content> element to <send>, and we cannot match anonymous events in transitions. We can receive them in the C++ code, though. Change-Id: Ieef7aba3fee79181c56002a0334f9f8e4af4df14 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| * Add a way to verify events received from a test caseUlf Hermann2017-02-081-0/+103
| | | | | | | | | | Change-Id: I1012cb5c1b38c23af32197c48459668dc64144b2 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| * Reformat include statements in accordance with coding conventionsUlf Hermann2017-02-0818-57/+49
| | | | | | | | | | | | | | | | | | Also, drop the QStateMachine includes. We certainly don't need them anymore. Change-Id: I1fe99162c68668858024516f937ee66ca6eff0bc Task-number: QTBUG-58658 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| * Fix incorrect include of QStringMilla Pohjanheimo2017-02-081-1/+1
| | | | | | | | | | | | | | | | In public header files including Qt headers should be #include <QtCore/qwhatever.h> Change-Id: I4fb76e04a2bb2ed99e81fa41be1c03f14a047e16 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| * Make ftpclient example valid scxmlUlf Hermann2017-02-072-2/+3
| | | | | | | | | | | | | | | | | | | | Section 6.2.3 of the standard says "A conformant SCXML document MUST specify exactly one of 'event', 'eventexpr' and <content>." Therefore we cannot use <content> with 'eventexpr', but we can use <param> instead. Change-Id: I64c0ec8a1f08d5b441e5b52a83800800f8a99d03 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| * Evaluate expr in <content> to variant, rather than stringUlf Hermann2017-02-071-1/+1
| | | | | | | | | | | | | | | | There is no reason to artificially clamp the range of possible data types as the data() member of QScxmlEvent is QVariant. Change-Id: I9264a61566c60bbf1325f3864064a093dc02edbd Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| * Fix example to use source instead of filenameAndy Shaw2017-01-311-1/+1
| | | | | | | | | | | | Change-Id: I8ef23c1e79dbec48522fcbe78700176a06b02678 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | Doc: Mention that the state machine owns submitted eventsUlf Hermann2017-03-061-0/+1
| | | | | | | | | | Change-Id: I9e83c938ff6ebc3c630b2d28f6d3c00cc340b291 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Make QScxmlScxmlService::stateMachine a Q_PROPERTYUlf Hermann2017-02-245-13/+117
| | | | | | | | | | | | | | | | Without this, the invoke example doesn't work. Change-Id: I8c4ae9b21e1164946f2a60777b9e9905f2b51237 Reviewed-by: Andy Shaw <andy.shaw@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* | Register a metatype for QScxmlStateMachine *Ulf Hermann2017-02-241-1/+4
| | | | | | | | | | | | | | | | | | We want to be able to pass it through QVariant without manually registering it. Change-Id: I99a39a168f4b4620b91f184f13ad744172d89d1e Reviewed-by: Andy Shaw <andy.shaw@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* | Merge remote-tracking branch 'origin/5.8' into devv5.9.0-alpha1Liang Qi2017-01-2535-394/+968
|\| | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I639eb3acef7004a20447bbb66fb44661bf8e952e
| * remove obsolete host build declarations from subdirs projectsOswald Buddenhagen2017-01-181-2/+0
| | | | | | | | | | | | | | follows up qtbase/4eb2feb2. Change-Id: I967126f8ae400f9cf8d49683920e71df960b1763 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * Merge remote-tracking branch 'origin/5.8.0' into 5.8Liang Qi2017-01-0431-374/+960
| |\ | | | | | | | | | | | | | | | | | | | | | Conflicts: src/scxml/qscxmlinvokableservice.cpp tools/qscxmlc/scxmlcppdumper.cpp Change-Id: Iadbe84d8eae7ccdf8dd9a0109af236a3747976c8
| | * Initialize the scxml element's initial transitionv5.8.0-rc1v5.8.0Ulf Hermann2016-12-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents TableDataBuilder::visit() from asserting when an empty state chart is processed. Task-number: QTBUG-57499 Change-Id: If5ca4f68101ff72548d43e4c84c02c84b9803017 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| | * Emit runningChanged signal when running changesJan Arne Petersen2016-12-082-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | The QScxmlStateMachine::runningChanged signal was never emitted. Emit it when the running property changes. Change-Id: I9b6cb8d48c9c8d893b0af2b8f87ecd74f4e64055 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
| | * Doc: Edit the docs for grammar and styleLeena Miettinen2016-12-028-105/+117
| | | | | | | | | | | | | | | | | | | | | Fix an external link and add \brief commands for properties. Change-Id: I84477f0cfddb27bbb4d807f8f1b000601af245c9 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
| | * Add missing documentationUlf Hermann2016-11-3014-50/+602
| | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the methods marked as \internal or excluded via "#ifndef Q_QDOC" so far are not actually internal as they are called from compiled state machines. We have to document them. Change-Id: Ib80268ae00f536e9ac2d337b565dcafbbdc31dea Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| | * Drop indirect access to tableData from various data modelsUlf Hermann2016-11-306-65/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we need to access it from everywhere, we can as well make it a public property of the state machine. This saves us the tableData() method on QScxmlDataModel and some back and forth between d and q pointers. We can also drop the indirection for accessing the state machine in most cases, as that is just a public member of QScxmlDataModelPrivate. Change-Id: I4aa0cec7d4664aec7b1581de531cdb1554ca5342 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| | * Drop the final from methods of QScxmlCppDataModelUlf Hermann2016-11-301-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no reason to prohibit the implementation of <assign>, <foreach> and initialization. That will just make people resort to the base class instead of using the facilities offered by the C++ data model. Change-Id: Ic2c8d679a2c8f1c592cb3075c0b70c7cff80cd9c Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| | * Drop Q_UNREACHABLE() from C++ data model methodsUlf Hermann2016-11-301-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not illegal to do e.g. <assign> in your SCXML document without implementing the assign operation in your data model. The assignment will fail, setting the ok parameter to false. That should be enough. Q_UNREACHABLE() is unreliable anyway as it only triggers in debug builds. Change-Id: Ib29a20682d2c9256fcf59d29e32383c1df675eba Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| | * Drop empty QScxmlEcmaScriptDataModel destructorUlf Hermann2016-11-302-6/+0
| | | | | | | | | | | | | | | Change-Id: I6d7f4ef2215e8fe0b0547b71130a684139d55c0b Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| | * Fix header guardsUlf Hermann2016-11-2915-45/+45
| | | | | | | | | | | | | | | | | | | | | They should reflect the file name. Change-Id: I4f1ba1b98b673cfcb9ccacc8d83a42e06b1f2a3d Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
| | * Merge 5.8 into 5.8.0Oswald Buddenhagen2016-11-2910-63/+125
| | |\ | | | | | | | | | | | | Change-Id: I8fa59d8b2559aa620eb533ed4274ea1b7374d2c7
| | * | Drop some empty destructorsUlf Hermann2016-11-294-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need to expose explicit destructors when inheriting from QObject. Change-Id: I2c9e7b075cab9b8b44be10045aeddd3c1cfb89b7 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| | * | Reduce the public API exposed in qscxmlinvokableservice.hUlf Hermann2016-11-297-158/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We inline QScxmlInvokableService::finalize into the only place where it is used. Furthermore we construct static SCXML state machines through their metaobjects rather than directly calling the constructor. This way we can drop the template, make all the service factories QObjects, drop the intermediate QScxmlScxmlServiceFactory class, and greatly reduce the API exposed in qscxmlinvokableservice.h. In addition, as some of the structs in QScxmlExecutableContent are fairly large, we return them as const references, rather than by value. Change-Id: Ia9ee61b5668b8af44307787339c08f3c6f23f713 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| | * | Pass the factory to QScxmlInvokableService::start()Ulf Hermann2016-11-293-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... instead of the various properties of the factory. This makes the API nicer. Change-Id: I16f3c6382d6cc71500147f8d2dbd35392924b5f0 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| | * | Set ok to false in the evaluate stubs of the C++ data modelUlf Hermann2016-11-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If those get called, it's definitely an error. Change-Id: I0515e02ff77c2839bc4d31d35d266ecdfecb7624 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
| | * | Drop the return value from QScxmlDataModel::evaluateForEach()Ulf Hermann2016-11-258-23/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an inconsistency in the public API. The bool return value is unnecessary as we pass a bool *ok, just like we do for the other evaluation methods. Change-Id: I750e5d6d39df417fec727ef6f3ec1ade5ddc2dfc Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
| * | | Bump versionOswald Buddenhagen2017-01-031-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ie002703be7e93308999fcdb793be45670beb7cbc
| * | | TrafficLight example: prevent resizing past implicit background sizeMitch Curtis2017-01-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't have anything to display since our background image isn't scalable, so just prevent resizing past the implicit size of the background image to avoid a black region being visible. Task-number: QTBUG-57476 Change-Id: I57e55f860b3447c6940c90b04b8b4e1b0f87d484 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
| * | | remove dependencies from sync.profileOswald Buddenhagen2016-12-271-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the CI obtains them from the qt5 super repo nowadays. Change-Id: I7bb10a858bb3f920139fb7cd9ac2134885e4878d Reviewed-by: Jake Petroules <jake.petroules@qt.io>
| * | | Resolve the mixup of various ID typesUlf Hermann2016-12-194-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We should not compare instances of different IDs with one another. Change-Id: I830d747ffde4c162c73475a600cef23e10c898e5 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* | | | statemachineloader: Use the newly-introduced qmlWarning instead of qmlInfoRobin Burchell2017-01-131-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qmlInfo will shortly be returning info-level messages (as the name hints), rather than warning level messages. While I'm here, tiny drive-by to remove the unnecessary "ERROR" prefixes on some of the warnings. Change-Id: Ia615e378f295893066ca437fa6cf5afb7213668e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | | | Optionally generate accessor and signal methods for statesUlf Hermann2016-12-139-14/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can easily do this and provide a much nicer API. These methods are not available for dynamically loaded state machines. By default we provide the same API for compiled and loaded state machines. The new methods are only generated if you pass the "--statemethods" parameter to qscxmlc. A new qmake variable called "QSCXMLC_ARGUMENTS" is added for any extra arguments to qscxmlc such as this one. Change-Id: Ie7a4eb4890c9d42f89093f3cf3ea917ef2793518 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* | | | Merge remote-tracking branch 'origin/5.8' into devLiang Qi2016-12-1211-64/+126
|\| | | | | | | | | | | | | | | Change-Id: I327045f701339ce2bf54b47a3a5ea9b08cdcc5f8
| * | | Fix include directive in qscxmlinvokableservice.hFriedemann Kleint2016-12-021-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | Fix syncqt warning: QtScxml: WARNING: qtscxml/src/scxml/qscxmlinvokableservice.h includes qscxmldatamodel.h when it should include QtScxml/qscxmldatamodel.h Change-Id: I5fb1f942aafc56a0fc96c00931e59c09b90df25f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
| * | Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-11-280-0/+0
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/scxml/trafficlight-common/TrafficLight.qml tools/qscxmlc/doc/qscxmlc.qdoc tools/qscxmlc/scxmlcppdumper.cpp Change-Id: I1452fa6a24486fb33f70b49eff593a925894f8da