summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/itemviews
Commit message (Collapse)AuthorAgeFilesLines
* QTBUG14363_completerWithAnyKeyPressedEditTriggers remove setActiveWindoFrédéric Lefebvre12 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I2f67811f95f580b67f247df55020266ec28c13a7 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QTableView::keyboardNavigation() remove setActiveWindow()Frédéric Lefebvre12 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ia26ea1623a00f17765d5530882dd83480e3bb9b8 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* textEditDoesntChangeFocusOnTab_qtbug3305() remove setActiveWindow()Frédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 as made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ieb302b451308c3e486c6d8adca17b173da5db347 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QAbstractItemView::QTBUG31411_noSelection() remove setActiveWindow()Frédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: If1e4810a899431d78fd0d5c620497ecfe813c07e Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QAbstractItemView::testFocusPolicy() remove setActiveWindow()Frédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I4cd15a50f3925f6f998d73d7bca24cecb794bd58 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* testNoActivationOnDisabledItem() remove setActiveWindow()Frédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: If72292a4d9281da4fea6f40b032cece353c51fa1 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QAbstractItemView::deselectInSignleSelection remove setActiveWindowFrédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I9a22be07862b47c013686173da04315ccdd6bf1d Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QAbstractItemView::testChangeEditorState() remove setActiveWindow()Frédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I5756f3298225a3d7564ff65e9c72c263f5903370 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QItemDelegate::task257859_finalizeEdit() remove setActiveWindow()Frédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I163589828d64e837b9c170e724bc44251e4f64ef Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QItemDelegate::enterKey remove QApplicationPrivate::setActiveWindowFrédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I13872112fe33457c8843eb6982d8231022a5083a Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QItemDelegate::decoration() remove setActiveWindow()Frédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: If9058e015fa8223c3c318ba240eddf2ab24949be Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QItemDelegate::dateTimeEditor() remove setActiveWindow()Frédéric Lefebvre13 days1-2/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove 2 redundant calls. Task-number: QTBUG-121488 Change-Id: I8f8d6e5988759836a880c6c141605f0593f81098 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QHeaderview::statusTips() remove setActiveWindow()Frédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I685b8306d985418e06cc1ce21e872bb6586818e4 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QHeaderview::focusPolicy() remove setActiveWindow()Frédéric Lefebvre13 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ie2be1421019d09d12d1860b22fe1c98fd8bc2a59 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QAbstractView::inputMethodEnabled() remove setActiveWindow()Frédéric Lefebvre13 days1-6/+0
| | | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove 6 redundant calls from the //Check focus by switching the activation of the window to force a focus in section. Task-number: QTBUG-121488 Change-Id: I9f1ff1680ae01253261717ee81920ec38dfe8847 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QListView::moveLastRow remove QApplicationPrivate::setActiveWindowFrédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I72a5b4ae7f47374cd6b84b7c212a93b6d1e2f607 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QListView::task262152_setModelColumnNavigate remove setActiveWindowFrédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ia6f812acd7a32804ad4cd0fc859ac6a507774da8 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QListView::shiftSelectionWithItemAlignment remove setActiveWindow()Frédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I7cf230e46588a47a972dff8f4e40217390dcacc1 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QListView::keyboardSearch() remove setActiveWindow()Frédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I9b4b56e47869d3751fa4498349c199b164481168 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QItemDelefate::testLineEditValidate() remove setActiveWindow()Frédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I212eedf0f6101b40c22c6afdeb2d434f0e762889 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QAbstractItemView::testClickedSignal() remove setActiveWindow()Frédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Iffeab55db85304e6e467912505c2582df4378993 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* QTBUG6407_extendedSelection() remove setActiveWindow()Frédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I073cbf74f11c3492444ecd94655e6b1e4e75611d Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QAbstractItemView::task221955_selectedEditor remove setActiveWindowFrédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I6a4bad1537c8298649598fc3ceecfb6086842b7e Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QAbstractItemView::setItemDelegate() remove setActiveWindow()Frédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ib7de6df3dc330ff8e3eff7a901eca535a4f22a2d Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QTreeView::statusTip() remove QApplicationPrivate::setActiveWindowFrédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ie0754c79fc31a811b587f11924b90a376f5821a9 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QTreeView::keyboardNavigationWithDisabled remove setActiveWindow()Frédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I1abfd397f74fe8ce5fb37c3ea7128e4e577e717e Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QTreeView::doubleClickedWithSpans() remove setActiveWindow()Frédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I82752ca528752b401001e1db36f78f440e130dd7 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QTreeView::task224091_appendColumns() remove setActiveWindow()Frédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I5e840632edc7ae86a718896b744baf45b954bdda Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QTreeView::moveCursor() remove QApplicationPrivate::setActiveWindowFrédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I14a0e16330560a8e18f2d0d2a20789426856390b Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QTreeView::keyboardSearchMultiColumn() remove setActiveWindow()Frédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I1ca04abbb1f67d5a4a6157725891a4a076abfe75 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QTableView::tabFocus() remove QApplicationPrivate::setActiveWindowFrédéric Lefebvre2024-04-261-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Id6b4fb78c8ee52a5f5eb2a9737991e7ed648f710 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* QTableView: fix infinite loop when resizing rows/columns on model resetVolker Hilsheimer2024-04-171-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | When a slot is connected to the modelReset signal before the model is set on the view, then such a slot might try to resize the columns or rows to fit the contents before the view had a chance to perform layout work. In that case, the while-loop that calculated the size hint of a rows (or column) by checking the size hint of each cell might not exit, as cached information about visual indexes would be invalid. To prevent this, don't loop over the cells if the actual last row/column of the model (after the reset) is less than the first (cached) visible row/column. Also, make sure we increase the counter for number of rows/columns processed with each iteration. Add a test (that loops infinitely without the fix, resulting in the test being killed by the framework), and make the 'actual' variables constant for clarity. Fixes: QTBUG-124301 Pick-to: 6.7 Change-Id: I0adb2f1e8a1e78760ef7c19e9686c9572eca8be6 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tests: blacklist tst_QIV::focusNextOnHide() on WaylandLiang Qi2024-03-141-0/+2
| | | | | | | | Task-number: QTBUG-107153 Pick-to: 6.7 6.6 6.5 Change-Id: I8b79e74369689a549c5481b44830374215acf59b Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* QAbstractItemView: Release tab focus when hiddenViktor Arvidsson2024-02-291-0/+28
| | | | | | | | | | | | | | When hiding a widget that has focus we try to focus the next widget in the focus chain by running focusNextPrevChild. The abstract item view overrides this to step the items but does not account for this hide case which makes focusing not only not work, but also by hiding the widget the selection in the item view gets changed. Pick-to: 6.7 6.6 6.5 Change-Id: I29d40a1fb86ced60ec742b2753a87383846a89b3 Reviewed-by: Viktor Arvidsson <viktor.arvidss@gmail.com> Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Revert "QHeaderView: relayout on resetDefaultSectionSize"Jonas Karlsson2024-02-261-0/+1
| | | | | | | | | | | | This reverts commit a8df174369cecd90f14dac85bf162353b7cb25d1. Reason for revert: Caused QTBUG-122109 Pick-to: 6.5 6.6 6.7 Fixes: QTBUG-122109 Fixes: QTBUG-120699 Change-Id: Iea185c00f35e17d8eb8e8da70dc2d808ea274b04 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* QAbstractItemView: close all child editors when parent is removedChristian Ehrlicher2024-02-081-4/+29
| | | | | | | | | | | | | QAIV::rowsAboutToBeRemoved() closed all child editors when the child was a direct ancestor of the removed index but forgot to check if the index is an indirect ancestor. Some of those editors were removed later in updateEditorGeometries() but not all as the testcase in the bug report showed. Pick-to: 6.7 6.6 6.5 Fixes: QTBUG-103476 Change-Id: I90b3d3bff3857aa79f96eecf23d980928693b7bc Reviewed-by: David Faure <david.faure@kdab.com>
* Remove extra semi-colonsTasuku Suzuki2024-02-062-2/+2
| | | | | Change-Id: I92fddb36cd136fd1bd627955f15d0559b9942d7e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Change license for tests filesLucie Gérard2024-02-0416-16/+16
| | | | | | | | | | | | According to QUIP-18 [1], all tests file 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: I9657df5d660820e56c96d511ea49d321c54682e8 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
* tests: fix a crash in tst_QItemDelegate::reuseEditor() on WaylandLiang Qi2024-01-251-1/+2
| | | | | | | Pick-to: 6.7 6.6 6.5 Task-number: QTBUG-107153 Change-Id: Ic041302753bee4e2292b2afd898dd176966cf951 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* tests: make tst_QAIV::removeIndexWhileEditing() work on WaylandLiang Qi2024-01-241-0/+2
| | | | | | | | | This amends 04415264489cd96a4a542a2ae7db1c14558397a5. Pick-to: 6.7 6.6 6.5 Fixes: QTBUG-121498 Change-Id: I7606bbe482edcc7395f0ff5634d374ab4784b19b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Skip test which resizes window with EGLFSTomasz Kozłowski2024-01-091-0/+3
| | | | | | | | | | This test is resizing window, which is not supported in EGLFS, so it needs to be skipped. Pick-to: 6.7 Task-number: QTBUG-115777 Change-Id: Ie136f6565b4d466bc62c4e2ebe2337488b5003b4 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* QAIV: reset state if removing index while editing or committingVolker Hilsheimer2023-12-141-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | If the commit of data to a model index result in that index getting filtered out, then the editor will be removed as part of committing the data, and the index that the editor is associated with becomes invalid. The subsequent call to closeEditor() will find that the index for the editor is no longer valid. This should not warn, and it should also not abort the clean-up process early. Instead, identify that the editor that we want to closed is already hidden. In that case, skip the warning and most of the cleanup process, and proceed directly to the EndEditHint handling further down. Add a test that simulates the two scenarios where this can happen: either the committing of data results in the index being filtered out by the existing filter; or the filter changes while editing, and the index being edited gets removed. In both cases, we don't want to see a warning, and the state of the item view should be reset correctly. Pick-to: 6.7 6.6 6.5 Fixes: QTBUG-115765 Change-Id: If247172fdac9a1a9279dae96c078d32553d4ee5d Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: 🌴 Alexey Edelev 🌴 <alexey.edelev@qt.io>
* Tests: remove blacklisted CIs no longer availableChristian Ehrlicher2023-12-061-2/+0
| | | | | | | | | | | | | | | | Remove the following CIs from BLACKLIST files as they are no longer used: - msvc-2015 - msvc-2017 - windows-7sp1 - opensuse-42.3 - ubuntu 16.04/18.04/20.04 - rhel 6.6/7.4/7.6 - redhatenterpriselinuxworkstation-6.6 Change-Id: Ief9550e3455a1ed211d978933262c8d5557b0fec Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Skip test cases that resizes window on eglfs_viv on VxWorksMarcin Zdunek2023-12-051-0/+10
| | | | | | | | This change is required when running in real hw with eglfs backend. It passed on CI because CI used "offscreen" backend and eglfs is not tested on CI at the moment. Task-number: QTBUG-115777 Change-Id: I4bbfbedcbe21c5c2041be9bdb8ae370156bb6200 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Purge empty BLACKLIST files from testsEdward Welbourne2023-11-241-0/+0
| | | | | | | There's no point to the file if it has no content. Change-Id: Ie0deb59a63d5f7a654fcab1218e0a814710072ff Reviewed-by: Jason McDonald <macadder1@gmail.com>
* QHeaderView: relayout on resetDefaultSectionSizeJonas Karlsson2023-11-081-0/+16
| | | | | | | | | | | We now call setDefaultSectionSize with the new default section size. This clamps the value to min/max section size and it will resize affected sections. Pick-to: 6.5 6.6 Fixes: QTBUG-116013 Change-Id: I39849aca8d0672629ce0b3ca244038c27e045d4b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* QCommonStyle: cleanup standardIcon()/standardPixmap() [2/2]Christian Ehrlicher2023-10-291-0/+1
| | | | | | | | | | | | | Factor out the four code paths for standardIcon() (windows, mac, application and resource theme) and use those functions also for standardPixmap() so the returned pixmap is correctly scaled with the current devicePixelRatio. Part 2: move functionality into own functions Task-number: QTBUG-118122 Change-Id: I0763c4db9e7aecf4c52bf0f5770bd3dd87c4a8a4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* Tests/QListView: fix internalDragDropMove test for openSUSEChristian Ehrlicher2023-10-052-3/+7
| | | | | | | | | | | | On some xcb platforms the xcb_configure_notify_event_t is sent after the window is fully exposed which leads to a wrong position for QWidget::mapToGlobal() which makes the test fail. Fix it by waiting for a move event with a position != 0,0 before starting the drag'n'drop operation. Fixes: QTBUG-94250 Change-Id: If91a15815205ba9dcea36248d9de03ed0a7e5822 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* QHeaderView: add test for rows/columns movedChristian Ehrlicher2023-10-031-0/+30
| | | | | | | | | | Add a testcase to make sure the signals for moveing rows are properly connected from the model to the corresponding QHeaderView slots. Task-number: QTBUG-117698 Pick-to: 6.6 6.5 Change-Id: I354f8836d3de58a8bf51da7a8c0859a673ec9339 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Tests/QAbstractiItemView: fix runtime warningsChristian Ehrlicher2023-10-011-6/+7
| | | | | | | | Fix runtime warnings about testdata with the same name. Pick-to: 6.6 6.5 Change-Id: I5d4927cc53be3e08a524498db42a8a08396ced8e Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>