Commit Graph

17 Commits

Author SHA1 Message Date
Mitch Curtis 1f2caf503f Allow opening auto tests as standalone projects in IDEs
Pick-to: 6.2 6.4
Change-Id: I858be9bded792ffb78e375cace49a651d365dea5
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2022-10-26 10:42:33 +08:00
Yuhang Zhao e7c1fec763 Move Settings out of Qt.labs module
Move Settings from the Qt.labs module to the QtCore module.
And deprecate the original one in Qt.labs.

Also changed the fileName(QString) property to location(QUrl)
to better fit the Qt API.

Adjust the tests accordingly.

Task-number: QTBUG-92806
Change-Id: I1cbad1315383a9f2963583fd4d00cf3612f99f1e
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2022-09-29 21:31:17 +08:00
Lucie Gérard 1b9808737a Change the license of all CMakeLists.txt and *.cmake files to BSD
Task-number: QTBUG-105718
Change-Id: Id89ed14990804a5024183e75382cc539d4293da1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-09-07 17:01:30 +02:00
Alexandru Croitor a8431a4067 CMake: Don't use PUBLIC_LIBRARIES for tests and test helpers
Change-Id: I1cd769f85d5f82c43639d6787d98e536619249e6
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
2022-07-28 14:58:42 +02:00
Lucie Gérard 5a7b716474 Add license headers to cmake files
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>
2022-07-08 10:41:06 +02:00
Lucie Gérard 0dc4fd240a Use SPDX license identifiers
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>
2022-06-11 08:05:15 +02:00
Mitch Curtis 1c680287ff Use regular key events for cancelling popups
We should avoid creating shortcuts for special keys like
Cancel (Back/Escape), as it can interfere with the user's own shortcuts
by e.g. requiring use of Keys.shortcutOverride, which itself can only
be sent to items with active focus, preventing users from overriding
Qt's global shortcuts in some cases.

[ChangeLog][Controls][Important Behavior Changes] Popups no longer
handle the Escape and Back keys by grabbing them as shortcuts, instead
they are treated as regular events. This also means that popups
that should be closable with the Escape or Back keys must have focus.

Task-number: QTBUG-79280
Change-Id: Iaf7249226d5766b2ab101630de5590b9524c56dd
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-05-25 19:51:20 +08:00
Alexey Edelev 43dac975a3 Revert "QML: Add indirect library dependencies for tests relying those"
This reverts commit ae989a87bc.

Reason for revert: A valid workaround provided in aec6b0075863bff181d1d3dfdf1399264de01f67

Change-Id: Ib13f6a9830ad4e3359e97ff9164b579399442460
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-04-08 00:20:10 +02:00
Mitch Curtis 8751b64383 Make QML test files available to Creator's locator
Pick-to: 6.2 6.3
Change-Id: I87acd2ff973b3acce6d575bf6b2e04b8e50f0597
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2022-03-09 12:40:06 +01:00
Assam Boudjelthia 841217b988 Rename android_dummy_imports.qml to dummy_imports.qml
Amends 16f0d38d56.
From 0fc8a511ba, it seems that
not only Android is relying on these imports to satify
qmlimportscanner, but also Integrity. So rename the imports
to something generic and remove the explicit mention for Android.

Pick-to: 6.2 6.3
Task-number: QTBUG-97056
Change-Id: I9273fd0f9201a805cad4d588847796f7daecb686
Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2022-03-05 15:23:48 +00:00
Assam Boudjelthia 16f0d38d56 Android: unify the android tests dummy import files
This renames all qml files added before to allow qmlimportsanner to
include the necessary modules into Android packages, into
android_dummy_imports.qml, and also adds a comment in each one
describing why it's needed.

Pick-to: 6.2 6.3
Task-number: QTBUG-97056
Change-Id: I7fc0514dd9e5bc10849fdd0503547e1a75242414
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2022-03-02 15:21:09 +02:00
Pasi Petäjäjärvi ae989a87bc QML: Add indirect library dependencies for tests relying those
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>
2022-03-02 15:21:08 +02:00
Assam Boudjelthia b6413335b0 Fix tst_controls missing resources
bundle all data resources and make sure all imports and bundled.

Add dummy.qml files which are needed for androiddeployqt to be able
to package the QML modules because they're not imported in a normal
fashion under a QML file but rather implicitly inside the test cases.

Pick-to: 6.2 6.3
Task-numer: QTBUG-97056
Change-Id: I8be72c06994cc7bd90fb176a19bf69142b225fd1
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2022-02-01 14:21:27 +00:00
Pasi Petäjäjärvi 8dc54c99fd QNX: Blacklist tests that fails
QNX tests are run on CI in qemu using offscreen
qpa plugin and software backend similar like b2qt.
See QTBUG-95750

Pick-to: 6.2 6.3
Task-number: QTBUG-95750
Change-Id: I4c6e4a513f8289d50922259e474a41173c29224b
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2022-02-01 14:21:26 +00:00
Kai Köhne 88fb3b4043 Fix license of tests from LGPL3 to GPL-EXCEPT
Autotests in Qt are usually GPL3, or BSD. No point in using the LGPL
here.

This also gets rid of last references to LICENSE.LGPLv3 in this
repository, so we can delete both LICENSE.LGPLv3 and LICENSE.GPLv3,
which it references.

Change-Id: Idbdefe0c68cc8047ede72b439a4d7ff40dfd71b6
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-11-29 09:22:01 +01:00
Zhang Hao 603c91f330 RangeSlider: fix both handles being hovered
When both handles overlap, only the handle with
the higher Z value should be hovered.

Pick-to: 6.2 6.1 5.15
Fixes: QTBUG-94558
Done-with: Mitch Curtis <mitch.curtis@qt.io>
Change-Id: I6565e199ea77f3fae7a0d2dc84b36fa244bc7260
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2021-08-13 10:12:17 +02:00
Mitch Curtis f865f4b76d Restructure tests in preparation for merging into qtdeclarative
Task-number: QTBUG-95173
Change-Id: I541dc26cf2cdd6f2640824f693f7d059445367d9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-07-22 09:56:47 +02:00