summaryrefslogtreecommitdiffstats
path: root/src/common-lib/qml-utilities.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 6.9 cleanup commitRobert Griebl2024-12-011-24/+0
| | | | | | | | | | | - bumped the minimum Qt version to 6.8 (latest LTS) - went through and fixed all TODO comments for 6.9 work - removed deprecated functions slated for removal in 6.9 - due to the growing number of deprecated command-line options, their handling is now unified and removed from --help Change-Id: I1fad746beab6d62e0a37161f5c18179c6fc90a56 Reviewed-by: Bernd Weimer <[email protected]>
* Warn users about wrongly instantiating QML typesRobert Griebl2024-05-231-1/+65
| | | | | | | | | | | | | Technically we cannot hide SystemUI types in an Application context and vice versa in single-process mode. To make matters worse, we also cannot reasonably check each invocation of a function or property accessor for singletons. But we CAN at least make sure that the instantiatable types are not instantiated in the wrong context. Change-Id: I44ea14f59578f1b3e5230ccfb52e0358896d3d37 Reviewed-by: Dominik Holland <[email protected]>
* QVariants from QML often have QJSValues, which cannot be serializedRobert Griebl2024-03-181-0/+26
| | | | | | | | | | | | | Using anything more complex than a plain string or int for window properties stopped working with Qt 6, as those QJSValues cannot be serialized via QDataStream << anymore. Most QJSValues inside QVariant however can easily be converted to C++ datatypes inside QVariant, so we do that. Change-Id: Iacbc4331d1b5dee514b421db274288df7224f902 Pick-to: 6.7 6.6 6.5 Reviewed-by: Bernd Weimer <[email protected]>
* Modernize string literalsRobert Griebl2024-01-081-1/+3
| | | | | | | | | Replace all our custom qSL/qL1S/qL1C macros with standard C++ and QString unicode string literals. Change-Id: I9e0b69fb46525421f408f260518a69b8f8125d99 Pick-to: 6.7 Reviewed-by: Dominik Holland <[email protected]>
* Adapt to qvariant_p.h removal in QtCoreRobert Griebl2022-07-281-1/+0
| | | | | Change-Id: I660f4010ab3c90ff045b90773773a58ff52cf287 Reviewed-by: Dominik Holland <[email protected]>
* Use SPDX license identifiersDominik Holland2022-06-151-30/+4
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I09660e42dea769d720ff30e652485d9861cea965 Reviewed-by: Robert Griebl <[email protected]>
* Remove the old deprecated ApplicationIPCManager IPC mechanismRobert Griebl2021-07-271-39/+0
| | | | | | | | The unit tests that needed an IPC side channel have been updated to use intents instead. Change-Id: Ifbd82728557eadaea08425e9eacf2cbf8a08293e Reviewed-by: Dominik Holland <[email protected]>
* Update copyright headers to 2021 an finally switch to the GPLRobert Griebl2021-06-011-24/+13
| | | | | | | | | Also removed all the SPDX tags and -QTAS license extensions. Change-Id: Ibd10fe37afcbba832831d027cf2f1891ca0226c0 Fixes: AUTOSUITE-1648 Fixes: AUTOSUITE-1646 Reviewed-by: Dominik Holland <[email protected]>
* Qt6 port, part 2 .. compiling with cmakeRobert Griebl2020-11-281-4/+4
| | | | | Change-Id: I0b3b0bd420fc2b5a5d263439ef263a8214bbdb4b Reviewed-by: Robert Griebl <[email protected]>
* Qt 6 port, part 1 .. without cmakeRobert Griebl2020-11-281-3/+4
| | | | | | | | | All C++ and QML unit-tests pass. The QML "windowitem" test is very unstable though and often crashes in the RHI layer. Change-Id: Ia42fc71ad69d2ba74b8b631ded7569b48cf458ee Reviewed-by: Robert Griebl <[email protected]>
* Rename from Luxoft AM to Qt AMRobert Griebl2019-08-051-1/+1
| | | | | | Change-Id: I84bbd9e7f735ed1864804a9887d3a02b7c925e53 Reviewed-by: Vladimir Minenko <[email protected]> Reviewed-by: Bernd Weimer <[email protected]>
* Update copyright statementsRobert Griebl2018-12-181-1/+2
| | | | | | | | - added 2019 - everything is (c) Luxoft instead of Pelagicore from now on Change-Id: I82f874f0b0601deae1bb39347821edaf3c4cc6d8 Reviewed-by: Dominik Holland <[email protected]>
* Get rid of all 0-timeout single-shot timersRobert Griebl2018-10-261-1/+0
| | | | | | | | and replace them with the much more meaningful QMetaObject::invokeMethod, now that we can use this with the C++11 connect syntax. Change-Id: Ib16d214fc41d6994a3badab81094c32457dacd3a Reviewed-by: Daniel d'Andrada <[email protected]>
* Remove the retakeSingletonOwnershipFromQmlEngine hackDominik Holland2018-04-271-27/+0
| | | | | | | | | This was needed to fix the ownership issue of C++ singletons given to QML. This is fixed inside Qt since 5.6 by setting the ownership of the object to C++ using QQmlEngine::setObjectOwnership() Change-Id: I3985890b90fedf42673e0d835e91ac0195ba2af5 Reviewed-by: Robert Griebl <[email protected]>
* Clang code model fixesRobert Griebl2018-04-171-2/+2
| | | | | Change-Id: I46bb240aa843c297e83278a4f1b29f95be093c83 Reviewed-by: Thomas Senyk <[email protected]>
* Update Pelagicore copyright headers to 2018Robert Griebl2018-02-071-1/+1
| | | | | Change-Id: I8d9278053ccdef5a57e51753aa6157941ebcee52 Reviewed-by: Dominik Holland <[email protected]>
* Remove support for Qt 5.6, 5.7 and 5.8Robert Griebl2018-02-071-8/+1
| | | | | | | | | | | We supported these old version as long as they wouldn't break new features, but that is happening now: Qt < 5.9 does not support including enums of unrelated C++ classes into the QML scope of another exported C++ class. At least this will get rid of nearly all the ugly QT_VERSION #ifdefs we had. Change-Id: I1bc4e9289e685eedb0af7b20e928ed550569196b Reviewed-by: Dominik Holland <[email protected]>
* Refactor the interface between the AM and runtime launchersRobert Griebl2017-12-151-0/+28
| | | | | | | | | | | | | * A lot of shared code was moved to the new shared-main library, making it easier to write custom runtime launchers * Simplified the qml runtime launcher * The new OpenGL versioning was extended to apps using the QML runtime * Settings are communicated to the apps as plain text YAML documents now, which makes it very easy to verify and extended this interface. Task-number: AUTOSUITE-162 Change-Id: I0c1be3ac2e38ab492e69182058098cf31d34484b Reviewed-by: Dominik Holland <[email protected]>
* Fix compilation with Qt 5.9.2Volker Krause2017-08-161-1/+6
| | | | | | | QQmlType is now used by value. Change-Id: I508e20047cd18d57290db57ea46c6c2d7f7d235d Reviewed-by: Robert Griebl <[email protected]>
* Introduce config file cachingRobert Griebl2017-04-251-0/+47
| | | | | | | | | | | After parsing all config files specified on the command line, the appman will write a binary dump of the resulting configuration QVariantMap to a cache file via QDataStream. This cache file includes absolute paths and checksums of all config files, so that the appman can verify if the cache is still up-to-date on subsequent starts. Change-Id: I1d6f6621f75d1bba7849b3514177fc2c245c4c23 Reviewed-by: Dominik Holland <[email protected]>
* Replace all foreach loops with C++11 ranged-for loopsRobert Griebl2017-03-141-1/+2
| | | | | | | Also replaced a few loops with more efficient implementations. Change-Id: I56f9242a410741fc5e7a291be7c6090c599b7666 Reviewed-by: Thomas Senyk <[email protected]>
* Updated Pelagicore AG copyright to 2017Robert Griebl2017-01-161-1/+1
| | | | | | | Also added a few pro file tweaks to make this search&replace easier next year. Change-Id: I2d1153d62bfe558075009abcd8cad491f149c93f Reviewed-by: Dominik Holland <[email protected]>
* Make the build warning freeRobert Griebl2016-10-191-2/+2
| | | | | | | | | Replaced all AM_*_NAMESPACE with the undocumented QT_*_NAMESPACE_<foo> mechanism. Add dummy "we mean it" comments to _p.h headers, even though all of the AM's C++ API is private anyway. Change-Id: I45c1b7490f3d519e79350a19dab129ad20623d92 Reviewed-by: Thomas Senyk <[email protected]>
* Reimplemented build-system as a real Qt moduleRobert Griebl2016-10-171-0/+70
This should help with doc generation and actually running the unit-tests in the CI system. Please note that the binaries are now installed into $$[QT_INSTALL_BINS] Change-Id: I6f27ba39f8e5d923e1aeff550ba11c1fbd8ac5cf Reviewed-by: Robert Griebl <[email protected]>