aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quickcontrols2/controls/data/tst_dialogbuttonbox.qml
Commit message (Collapse)AuthorAgeFilesLines
* DialogButtonBox: test item deletion orderMitch Curtis2022-06-021-0/+82
| | | | | | | | | | | Ensure that items declared before and after the control itself do not cause heap-use-after-frees due to deletion order. Task-number: QTBUG-100396 Change-Id: I3989bf1b9fc64b4ec86f241de2cb8bcd05c2f89d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 73e173d73cffe95837490a86257cb82d9e150e3a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* DialogButtonBox: fix buttons going outside box on size changeMitch Curtis2022-04-251-1/+83
| | | | | | | | | | | | | | This was removed in c2fd8f7d00e2a47724765e289b828c36c98da29c, but seems to be necessary now. A horizontal ListView's implicitWidth is 0, so setting it to contentWidth seems reasonable regardless. For more history, see 8b78d9cea3091b0bd94d1ae0c71a000f8e7e1903. Change-Id: I8647dad32adca6482e9ff971010f6e779567a36d Fixes: QTBUG-102558 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit 2ae87dcece1915797de8065048817707c8f4d24f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* tst_dialogbuttonbox.qml: fix long loopMitch Curtis2022-04-251-4/+6
| | | | | | | | | | | | | | | Using waitForRendering can take ~3 seconds per loop, so switch to waitForItemPolished. This takes the total test duration for the Material style from 30268ms to 3234ms. While we're at it, replace var with let, and destroy the box at the end of the loop so that the drop shadow effect doesn't visually stack up. Change-Id: Id20ae911ffd140225b1d69f80f5bf742ffffdec4 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit a6b6eecc11a6e6ae45c3d824612d4752bd323fd1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Restructure tests in preparation for merging into qtdeclarativeMitch Curtis2021-07-221-0/+447
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>