aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/doc/how-tos/how-to-cpp-button
Commit message (Collapse)AuthorAgeFilesLines
* Tests: include QTest, not QtTestGiuseppe D'Angelo2025-04-151-1/+1
| | | | | | | | | | | | | Never use module-wide inclusions. They blow up build times. For QtTest this is usually just a typo (QTest was meant instead). Add missing includes as needed. In the diffs I've spotted other huge inclusions (QtQuick, QtQml), but those need more attention. Task-number: QTQAINFRA-7110 Pick-to: 6.9 6.8 Change-Id: I74bf3fe212f50a7a3a6af2b1c80bbcaabc2516d7 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Correct license for test filesLucie Gérard2024-02-274-4/+4
| | | | | | | | | | | | | | According to QUIP-18 [1], all test files should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: I26d72e8de04d4c7c57b3b7838af5d033265de5ba Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* CMake: Make quick tests standalone projectsAlexandru Croitor2023-07-051-0/+6
| | | | | | | | | | | | | | | | | Add the boilerplate standalone test prelude to each test, so that they can be opened with an IDE without the qt-cmake-standalone-test script, but directly with qt-cmake or cmake. Boilerplate was added using the follow script: https://git.qt.io/alcroito/cmake_refactor Manual adjustments were made where the code was inserted in the wrong location. Task-number: QTBUG-93020 Change-Id: I7854e7f015535a4835ce3daf816f7f33aa242c2a Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Replace AUTO_RESOURCE_PREFIX with QTP0001 policyAmir Masoud Abdol2023-04-041-1/+2
| | | | | | | | | | AUTO_RESOURCE_PREFIX is deprecated, and we should start using our CMake policies instead. Pick-to: 6.5 Change-Id: Ic0b317929a2d9b9297d113f4382e895d63673e1d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Add a how-to page for Qt Quick topicsMitch Curtis2023-03-245-0/+126
The goal for this page is to have an easily discoverable, useful reference that shows the simplest and best way of performing specific tasks using Qt Quick. Each task will have its own section title (so they can be linked to) in the form of a question. For example: How do I make a QML Button call C++ code when clicked? Each section will provide QML and/or C++ code snippets, or link to other parts of Qt's documentation where those snippets already exist. The QML-only snippets will be tested by tests/auto/quick/doc/how-tos/qml, and the mixed QML and C++ snippets will be tested by individual auto tests under tests/auto/quick/doc/how-tos. Fixes: QTBUG-109634 Pick-to: 6.5 Change-Id: I512e016db2c914fd9e0241d5e0738af82a98d08b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>