aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest
Commit message (Collapse)AuthorAgeFilesLines
...
* QmlTest: Prevent interleaved execution of TestCasesUlf Hermann2022-08-254-11/+55
| | | | | | | | | | | Run all TestCase instances on a timer in a singleton. This way, even if one TestCase manages to trigger a different one while it's still running, the new TestCase won't be executed until the old one is finished. Fixes: QTBUG-98350 Change-Id: I1797b5487f2c70fd2edfdbf8cf4c43a6353b12c8 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Remove Qt key words from header filesYuhang Zhao2022-07-192-3/+3
| | | | | | | | | | | So that users can use QT_NO_KEYWORDS when linking against QtDeclarative, even if they are using private headers. Docs, examples and tools are not touched because it's not necessary. Pick-to: 6.4 Change-Id: Idc30797074aaa72576429ebdaaf915d7f5acf84e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* qmltest: use variadic templates instead of QGenericArgumentThiago Macieira2022-07-181-2/+3
| | | | | Change-Id: I36b24183fbd041179f2ffffd170267647be37c52 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-082-0/+6
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I72c89a98c42bbc9234d8495e9e503bec81d11037 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add "auto" to module DEPENDENCIESUlf Hermann2022-06-241-1/+1
| | | | | | | | | This has not effect at run time but signals to tooling that the same version of the dependent module should be assumed. Change-Id: I582f6df80822c2700d3929fe3581f9c10e1a62cf Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Quick test lib: Account for DPR when grabbing sub-imageTimur Pocheptsov2022-06-171-1/+2
| | | | | | | | | | | Otherwise, the item that we are trying to grab lives in non-pixel coordinates, so we end up with a sub-image that is smaller than needed and incorrectly translated. Fixes: QTBUG-98914 Pick-to: 5.15 6.3 6.2 Change-Id: Ic36b4d2cb0de5ef50a726c2ee3207c95d06b6a05 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-1123-825/+47
| | | | | | | | | | | | 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: I63563bbeb6f60f89d2c99660400dca7fab78a294 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* TestCase: add API for checking for polish at window levelMitch Curtis2022-06-064-19/+69
| | | | | | | | | | | | | | | | | | These were introduced to the C++ QQuickTest namespace in 36c6c1ea57ad503a2f42fe81a12d1254fcd38cca. QML-only tests should also have access to them. [ChangeLog][QtQuickTest][TestCase] Added waitForPolish() and made isPolishScheduled() also take a Window, making it possible to verify that updatePolish() was called on one or more items managed by a window. [ChangeLog][QtQuickTest][TestCase] Deprecated waitForItemPolished(). Use the new waitForPolish() function instead. Task-number: QTBUG-93757 Change-Id: Ie53389c2d49e096ebf382b902714c9dd4c8d5685 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* QtQuickTest: add API for checking for polish at window levelMitch Curtis2022-06-023-2/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a qIsPolishScheduled(QQuickWindow *) overload of qIsPolishScheduled(QQuickItem *) (added in 40d6072bc8a4df0fe1a16025fe30fe653463a446) and deprecates qWaitForItemPolished() (added in 7a3cad0619662b992154e075ec6b840bfc8a46a7) in favor of qWaitForPolish(), which has QQuickItem* and QQuickWindow* overloads. The existing functions that take QQuickItem are useful, but testing Qt Quick applications can be made even easier by allowing users to check if a window has any items that need to be polished. This information is already present (in QQuickWindowPrivate::itemsToPolish), so it's very efficient to check for. This is especially useful now that Qt Quick Layouts using polishing for their layouting, for example, as it's no longer necessary to find individual polishable items in complex hierarchies before proceeding to interact with child items. [ChangeLog][QtQuickTest][QQuickTest] Added QQuickTest::qIsPolishScheduled(QQuickWindow *) and QQuickTest::qWaitForPolish(QQuickWindow *) functions for verifying that updatePolish() was called on one or more items managed by a window. [ChangeLog][QtQuickTest][QQuickTest] Deprecated QQuickTest::qWaitForItemPolished(QQuickItem *). Use the new QQuickTest::qWaitForPolish(QQuickItem *) function instead. Fixes: QTBUG-93757 Change-Id: I95b6e051b3c9fd2fa93604f4d9ccda486bb29f9d Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QML: Port QV4::CompiledData::Binding to new special integer bitfieldUlf Hermann2022-05-111-2/+2
| | | | | | | Pick-to: 5.15 6.2 6.3 Task-number: QTBUG-99545 Change-Id: I9f8bc5fa45c61f77ee95b055a3d8de001da8f8c5 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QML: Port QV4::CompiledData::Location to new special integer bitfieldUlf Hermann2022-05-111-2/+2
| | | | | | | | Pick-to: 5.15 6.2 6.3 Task-number: QTBUG-99545 Change-Id: If0d6f893f2351a4146ddf125be4079b5e312f308 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
* QML: Port QV4::CompiledData::Object to new special integer bitfieldUlf Hermann2022-05-111-1/+1
| | | | | | | | Pick-to: 5.15 6.2 6.3 Task-number: QTBUG-99545 Change-Id: Ia57a16313e883a8d4dab15c971181440ed1d2214 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
* Replace uses of deprecated _qs with _s/QStringLiteralSona Kurazyan2022-04-291-1/+3
| | | | | | Task-number: QTBUG-101408 Change-Id: Ic925751b73f52d8fa5add5cacc52d6dd6ea2dc27 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QuickTest: includemocsMarc Mutz2022-04-293-0/+6
| | | | | | | | | | | Including moc files directly into their classes' TU tends to improve codegen and enables extended compiler warnings, e.g. about unused private functions or fields. Pick-to: 6.3 6.2 5.15 Task-number: QTBUG-102948 Change-Id: Ic8d138526724734169ff7f0686ad19d30c729307 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Revert "QML: Add indirect library dependencies for tests relying those"Alexey Edelev2022-04-081-1/+1
| | | | | | | | | This reverts commit ae989a87bc2dad377e4884531f4a1b24dca897f4. Reason for revert: A valid workaround provided in aec6b0075863bff181d1d3dfdf1399264de01f67 Change-Id: Ib13f6a9830ad4e3359e97ff9164b579399442460 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Make sure all private headers include at least one otherThiago Macieira2022-03-102-1/+3
| | | | | | | | | | See script in qtbase/util/includeprivate for the rules. Since these files are being touched anyway, I also ran the updatecopyright.pl script too. Change-Id: Ib056b47dde3341ef9a52ffff13ef677e471674b6 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* QNX: Fix compiler warnings about unused parametersPasi Petäjäjärvi2022-03-051-0/+2
| | | | | | | | | | | | | warning: unused parameter 'usage' [-Wunused-parameter] warning: unused parameter 'writable' [-Wunused-parameter] warning: unused parameter 'executable' [-Wunused-parameter] warning: unused parameter 'lineCount' [-Wunused-parameter] Pick-to: 6.2 6.3 Fixes: QTBUG-101383 Change-Id: I22089b1aeea927468e61769dcbbc8e363b9d734e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* INTEGRITY: Fix some test cases from core/qml foldersKimmo Ollila2022-03-031-1/+1
| | | | | | | | | | | | | -Add dummy_imports.qml to TESTDATA -Let qmlimportscanner handle plugin import -Skip cases that depend on mounted filesystem Task-number: QTBUG-99123 Pick-to: 6.3 6.2 Change-Id: I99e21e423f2114c4c4ee1e24bdf9bb85af51baf7 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* QML: Add indirect library dependencies for tests relying thosePasi Petäjäjärvi2022-03-021-1/+1
| | | | | | | | | | Pick-to: 6.2 6.3 Task-number: QTBUG-101341 Change-Id: I8c9413caf24f1d2afc6678d2432c08ac7da2f1c3 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
* Add 6.3 revision to failOnWarningShawn Rutledge2022-02-121-1/+1
| | | | | | | | Amends ab287508d56a6735fc877ff0efa8da517e849ac3 Pick-to: 6.3 Change-Id: Ia9fb0e10b516d1541b6356557c11051e918a307d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Doc: Enable zero warning limit for documentationVenugopal Shivashankar2022-01-141-0/+3
| | | | | | | Pick-to: 6.3 Fixes: QTBUG-98116 Change-Id: I3d0a2ede380fd60bbe9c4e2852c4da3b737180ec Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Don't crash when pasting text into TextAreaShawn Rutledge2022-01-072-0/+15
| | | | | | | | | | | | | | | If QQuickTextAreaPrivate::ensureCursorVisible() calls QQuickFlickable::setContentY() while the Flickable does not yet know the extents of its new content, it caused a crash when QQuickScrollBarPrivate::visualArea() called qBound(0, 1, -something). We need to wait until Flickable knows it can scroll that far. It turns out ensureCursorVisible() is called several times anyway, so it's OK to skip the calls that would ask the Flickable to scroll out-of-bounds. Pick-to: 6.3 Task-number: QTBUG-99582 Change-Id: Ifb374a81591df49d3c571f55cb3076a78a808918 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Use find_package(Qt6 REQUIRED COMPONENTS ...) idiomKai Köhne2022-01-061-1/+1
| | | | | | | | | | Using REQUIRED as a prefix instead of suffix works better with OPTIONAL_COMPONENTS, and is also the order in the CMake manual. Task-number: QTBUG-98867 Pick-to: 6.2 6.3 Change-Id: I021c8f0c7f886d8f7037a1dd92ef1e8d747a45f4 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* QML test lib: propagate failOnWarning() feature to QMLAndrei Golubev2021-12-043-1/+52
| | | | | | | | | | | | With efb283fb7f72e950c8ecf755b960a3c1b36b5507 in qtbase, we can now fail a test if a particular warning is encountered. Let's also have this functionality in QML as it seems useful there as well [ChangeLog][QtQuickTest][TestCase] Added failOnWarning() for allowing to fail a test if a particular warning is output during that test execution Change-Id: I011ed119c318859a2bccd98f0d491904b10305e5 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Drop version no. against the \qmlmoduleVenugopal Shivashankar2021-12-021-1/+1
| | | | | | | | | | | | Since Qt 6.x, it is not mandatory to have version no. against the module import statements. Pick-to: 6.2 6.2.2 Task-number: QTBUG-98481 Change-Id: Ia3d35f2dc198d3e9c02d15784ca07c9bbb9526ce Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Make qmltest/SignalSpy.qml aware of recursive qtest_update() callsAndrei Golubev2021-11-301-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently looking up a property can cause it to be evaluated (and its signal handler called directly). From the debugging the following is visible: 1) assume signalName is set first and target has a pending binding (not evaluated yet) 2) once signalName setter is triggered, it calls the relevant signal handler - onSignalNameChanged, which subsequently calls qtest_update() 3) in qtest_update(): a. we first check whether there's any old state "if (qtest_prevTarget != null)" -> there's none yet, because we entered this function for the first time ever -> jump to: "if (target != null && signalName != "")" b. once at "target != null" the engine attempts to get the value of the `target` property. if the property `target` happens to have an unevaluated binding, it is evaluated immediately. [the logic is in QObjectWrapper::getQmlProperty() which calls QObjectWrapper::getProperty() and that one calls QQmlData::flushPendingBinding()] c. the binding evaluation causes onTargetChanged signal handler to trigger which in turn again enters qtest_update 4) in the "recursive" call of qtest_update(): a. same as 3.a. b. target is now evaluated and signalName is evaluated as well (due to being already set at step 2) c. "if (target != null && signalName != "")" succeeds and we proceed to connect to spy.qtest_activated d. we return from this function and get back to the outer qtest_update() 5) we are now back at 3.c in qtest_update(): a. target is evaluated, signalName is known, so "if (target != null && signalName != "")" succeeds -> again, we proceed to connect to spy.qtest_activated (for the second time now - see 4.c) b. we return from qtest_update() (the outer one) back to onSignalNameChanged 6) the end. bottom line: - two signals were connected to target[signalName] - zero signals were disconnected This seems like a very nasty thing to have in a UI-centric language but for now let's just attempt to fix the SignalSpy class Pick-to: 6.2 Task-number: QTBUG-98722 Change-Id: I70f11000b8383e6a8fc82d0034c62a2094f6d832 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QuickTest: Do not leak when returning an errorUlf Hermann2021-11-091-11/+14
| | | | | | | | | | | Avoid exit(), and wrap the application into a QScopedPointer. Also, handle errors while enumerating test cases the same way as errors while creating the QQuickView. Change-Id: I0dd147a16d3ea60147e15627295d7eb82630e59d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Use qWarning() in preference to QTest::qWarn()Edward Welbourne2021-09-231-5/+6
| | | | | | | | | QtTest's custome message handler routes it to the same place and QTest::qWarn() is on its way to deprecation. Change-Id: Ic27c9beda5976a1f6d07029bdca74c7e0c4454a0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Doc: Remove unsupported customFiltersKai Köhne2021-08-311-4/+0
| | | | | | | | | | customFilters defined in .qdocconf are not supported anymore by Qt Assistant since Qt 5.13. Therefore remove them from all .qdocconf files, also to avoid cargo-culting them to new help modules. Task-number: QTBUG-95987 Change-Id: Id17e9c73093aea87d66d13454cbfe9172916fb37 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Use <major>.0 as default version for QML filesUlf Hermann2021-08-271-3/+0
| | | | | | | | | | | | | | | | | | | | | | | Using the full module versions presents problems if you bump the minor version of your module. Bumping the minor version then bumps the versions of all QML files not explicitly versioned. This is certainly not what you want as the files should still be available to imports of the old version. Having it default to minor version 0 is more practical because many QML files are available from version 0 of their respective modules. Now you need to add version entries for files you add after .0 in order for them not to show up in imports of earlier versions. This is less of a problem, though, even if you forget it. In addition, use PAST_MAJOR_VERSIONS to derive additional versions to be added to the QML files. This allows us to drop a lot of boiler plate code from our own modules. Pick-to: 6.2 Change-Id: I8e4cfc16180af30e8bafc0a62137e9018f7eaee8 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Replace uses of deprecated QWARN macro with qWarningTor Arne Vestbø2021-08-042-2/+2
| | | | | | Pick-to: 6.2 Change-Id: I15de3c79d6a358f3b57cb5750d684f045bc97c3f Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Remove unnecessary declarations of type registration functionsUlf Hermann2021-07-161-3/+0
| | | | | | | | | For generated plugins, we do not need to manually declare type registration functions. Pick-to: 6.2 Change-Id: Iafd311375e4542a74fe2530e64e2b4bbe15af690 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QtTest: use delay properly in mouseWheel()Shawn Rutledge2021-07-061-1/+4
| | | | | | | | | As in mouseEvent(), it's not the qWait() that usually matters as much as the timestamp difference that the delivery code will see. Task-number: QTBUG-56075 Change-Id: Ifc3b0830b6973997916465f3a9313d607428ede1 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Modernize QuickTest's TestCase.qmlFabian Kosmale2021-07-051-5/+6
| | | | | | | Avoid using the deprecated arguments; use rest parameters instead. Change-Id: Ie6977376873e1f54154dcbd7d6d73401e4a1879d Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
* Fix QuickTest moduleUlf Hermann2021-06-301-4/+3
| | | | | | | | | It should be available under version 6.0 and we don't need to specify all the details. Pick-to: 6.2 Change-Id: Ic8756d3dc55188693068028d033bc2d13416d885 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Refactor and update qml CMake APICraig Scott2021-06-046-27/+2508
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing CMake API for qml modules had a number of shortcomings. Refactor it to achieve the following: - Clearly separate public and internal aspects. - Re-use code from qtbase for adding plugins and module targets rather than reimplementing close variations. - Provide more robust and complete support for qmllint, qmlcachegen and automatic generation of qmldir files. - Reduce the steps needed for more common scenarios. - Encourage the use of separate backing library and plugin targets. - Automatically generate the plugin class .cpp file where possible. - Specify .qml files directly through qml-specific API elements rather than assuming they can be extracted out of a set of resources. [ChangeLog][QtQml] The qml CMake API has changed from 6.1 and is now out of Technical Preview status. The most notable change is that .qml files should no longer be specified as resources, there is dedicated handling for them in the qt6_add_qml_module(). A related change is that the qt6_target_qml_files() command has been replaced by qt6_target_qml_sources(). More complete integration with qmlcachegen, qmllint and qmldir generation is also part of the CMake API. Fixes: QTBUG-91621 Task-number: QTBUG-82598 Task-number: QTBUG-88763 Task-number: QTBUG-89274 Task-number: QTBUG-91444 Change-Id: I25aae1b0e89890394dfe2ba2824008164b2ca8d9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* CMake: Remove unneeded *.pro and .prev_CMakeLists.txt filesCraig Scott2021-05-191-67/+0
| | | | | | | | | | The .pro files corresponding to the .prev_CMakeLists.txt files have already been removed. Change-Id: I254eafe4c7de1a516e33bd9cb3d9879e73fa83b4 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* CMake: Remove GENERATE_METATYPES usageMaximilian Goldstein2021-04-271-1/+0
| | | | | | | | We now generate metatypes by default and every instance of GENERATE_METATYPES now causes a warning. Change-Id: Id81f66eb8b0b7cc9475fd9978ebe374a59ab7b63 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* CMake: Fix qml module version to use the repo project versionAlexandru Croitor2021-04-151-1/+1
| | | | | | | | | | | Use PROJECT_VERSION instead of CMAKE_PROJECT_VERSION, so that the repo project version is used in a top-level build, rather than the version of the qt5 project. Pick-to: 6.1 6.0 Task-number: QTBUG-92861 Change-Id: I5a7a09baf81353558e512800746ac24e8e8b9a47 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QV4::Engine::toVariant: Use metatype instead of metatype idFabian Kosmale2021-03-251-1/+1
| | | | | | | | | | This way, we can avoid the costly id to metatype lookup in case where we actually need the full metatype. Task-number: QTBUG-88766 Change-Id: Ibe29b323007f00d2f8d1807fb9b64f9a8f87e807 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
* TestCase: Fix colors comparison in fuzzyCompare()Alexander Akulich2021-03-111-1/+1
| | | | | | | | | | fuzzyCompare() messed up the arguments and compared the first color argument with itself (ignoring the second color). Fixes: QTBUG-91694 Pick-to: 5.15 6.0 6.1 Change-Id: I86453c937e27a2112f8375b144ca21a9d088f017 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QuickTest: Do not recurse forever on inline components in enumerateTestCasesFabian Kosmale2021-02-011-1/+4
| | | | | | | | | | | | | | | | | | | | In TestCaseCollector::enumerateTestCases, we visit the super compilation unit of QML tpyes to check if they might be instances of TestCase. However, in the case of inline components, the super unit is the current compilation unit, and we would recurse endlessly. This does not address the issue that an inline component might actually inherit TestCase. However, as this only affects the enumeration output and does not actually affect test execution, this is not that much of an issue. It should also be noted that the enumeration also fails in any case where TestCases are loaded dynamically (with a loader), so the method is not 100% accurate even in the absence of inline components. Fixes: QTBUG-90740 Task-number: QTBUG-90762 Pick-to: 5.15 6.0 Change-Id: I7e133d62c4f62fc46e9bd3999ff755f7ded3c386 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Drop widgets dependency from quicktestUlf Hermann2021-02-012-37/+2
| | | | | | | | | | | | | It was introduced for QtQuick.Controls 1 back when it was still called QtDesktopComponents. QtQuick.Controls 1 is deprecated and also doesn't use the widgets mode anymore. I can't think of any other use for it, but loading QtWidgets produces a number of unwelcome side effects in the tests. Change-Id: I4b7e53a9b906c428d84926302bf629b826d900c4 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Remove the qmake project filesFabian Kosmale2021-01-152-45/+0
| | | | | | | | | Remove all qmake project files, except for examples which are used to test that qmake continues to work. Change-Id: Ic4abb72dc2dcd75df7a797c56056b6b3c5fe62ac Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QmlTest: Privately export the QML-exposed classesUlf Hermann2021-01-123-4/+9
| | | | | | | | This is necessary for them to be used in QML code compiled to C++. Change-Id: Id4bd265dee857eb32195580cbdc424ecbff90435 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
* Merge the QtTest and Qt.test.qtestroot QML modulesUlf Hermann2021-01-1212-67/+918
| | | | | | | | | | There is no point in having them separate and this way the plugin can be optional. Fixes: QTBUG-89804 Change-Id: Ic7de35f6ee7abde4840841e17d21c2b709f6db7d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
* Document how to use CMake for Qt QuickTestKai Koehne2020-12-034-18/+51
| | | | | | | Task-number: QTBUG-73058 Pick-to: 6.0 Change-Id: Ia00916e8ce8193225a773f85fe2af87e334afaab Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Doc: Remove version numbers for import statementJerome Pasion2020-11-261-1/+1
| | | | | | | | | | | -recommend using the import statement without versions for Qt 6.0 -update use of \qml snippet without \QtMinorVersion -some language change to be neutral about versions Task-number: QTBUG-87155 Pick-to: 6.0 6.0.0 Change-Id: I3ac44f93aab3086c1a49de79ecc677beb4ef9180 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Doc: Remove version numbers for import statementJerome Pasion2020-11-241-1/+1
| | | | | | | | | | -recommend using the import statement without versions for Qt 6.0 -update use of \qml Task-number: QTBUG-87155 Pick-to: 6.0 6.0.0 Change-Id: I555d582a13006c5abb6dc1e0266d2987ba79c6d8 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Mention a change in Qt Quick TestVolker Hilsheimer2020-11-181-1/+3
| | | | | | Change-Id: Id81fcbd8e6869239ad4625907819987463443d07 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>