qtdeclarative/tests/auto/quickcontrols
MohammadHossein Qanbari 398af1e359 SelectionRectangle: Deactivate when the last cell is unselected
This commit introduces changes to ensure that the SelectionRectangle is
properly deactivated when the last selected cell in QQuickTableView is
unselected.

Key changes include:
- Added a virtual method `hasSelection()` to QQuickSelectable interface
- Implemented `hasSelection()` for QQuickTableViewPrivate, which checks
if any items are selected
- Updated QQuickSelectionRectangle to utilize the new `hasSelection()`
method to determine its active state

The test case checks that after deselecting the last selected cell, both
the SelectionRectangle and its handles are properly deactivated.

Pick-to: 6.8 6.9
Change-Id: I97214bb0d91dda8a902a4725918b60209b853acf
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2025-01-09 19:20:41 +01:00
..
accessibility Fix double-triggering of actions via the accessibility interface 2024-10-27 16:57:47 +01:00
bic/data
controls SelectionRectangle: Deactivate when the last cell is unselected 2025-01-09 19:20:41 +01:00
cursor Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
customization Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
deferred Correct license for test files 2024-02-27 10:32:21 +01:00
designer Correct license for test files 2024-02-27 10:32:21 +01:00
focus Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
font Revert "Skip tst_font::font() on macOS 10.12" 2024-12-18 07:31:52 +08:00
palette Update palette change to the popup content item placed within item view 2024-12-12 18:20:55 +01:00
platform Fix test compilation issues with QtLite configuration 2024-04-30 09:00:03 +00:00
pointerhandlers Fix controls in MouseArea not being hoverable 2024-12-02 08:27:02 +08:00
pressandhold Correct license for test files 2024-02-27 10:32:21 +01:00
qquickapplicationwindow Revert "Make ApplicationWindow's content item the fallback focused item on startup" 2024-12-10 23:28:02 +00:00
qquickcolor Correct license for test files 2024-02-27 10:32:21 +01:00
qquickcontainer Container: cull items when our size is zero and contentItem is a view 2024-08-19 12:02:11 +08:00
qquickcontextmenu Fix propagation of QContextMenuEvent for QQuickItems 2024-12-25 00:03:44 +00:00
qquickcontrol Fix controls in MouseArea not being hoverable 2024-12-02 08:27:02 +08:00
qquickdrawer Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
qquickheaderview Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
qquickiconimage QQuickIconImage: Replace updateIcon() with QQuickImageBase::load() override 2024-11-26 16:27:00 +01:00
qquickiconlabel Controls: Avoid fractional position for icon image 2024-08-27 08:28:59 +02:00
qquickimaginestyle Correct license for test files 2024-02-27 10:32:21 +01:00
qquickmaterialstyle Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
qquickmaterialstyleconf Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
qquickmenu Move duplicate mouse hover checks into a skip macro 2024-11-22 09:55:10 +08:00
qquickmenubar Fix controls in MouseArea not being hoverable 2024-12-02 08:27:02 +08:00
qquickninepatchimage Use SKIP_IF_NO_WINDOW_GRAB in more places 2024-12-05 10:21:55 +08:00
qquickoverlay Correct license for test files 2024-02-27 10:32:21 +01:00
qquickpopup Fix shrinking issue when binding a Dialogs padding to SafeArea margins 2024-12-27 19:52:47 +01:00
qquickstyle Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
qquicktableviewdelegate QQuickSelectable: Fix selection in TableView and TreeView on Android 2024-11-28 03:23:37 +01:00
qquicktextarea Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
qquicktextfield TextField does not emit released signal after pressAndHold 2024-11-29 15:13:56 +05:30
qquicktreeviewdelegate QQuickSelectable: Fix selection in TableView and TreeView on Android 2024-11-28 03:23:37 +01:00
qquickuniversalstyle Universal: update style theme when system theme is changed 2024-09-20 08:05:35 +08:00
qquickuniversalstyleconf Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
revisions Correct license for test files 2024-02-27 10:32:21 +01:00
sanity qmllint: load plugins from the correct paths 2024-11-13 16:08:08 +00:00
snippets Menu, MenuBar: remove requestNative and rely solely on app attributes 2024-04-17 15:05:01 +08:00
styleimports Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
styleimportscompiletimematerial Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
styleimportscompiletimeqmlonly Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
translation Add Qt::Qml before Qt::QmlPrivate to auto tests 2024-10-22 01:27:15 +03:00
CMakeLists.txt Add ContextMenu 2024-12-24 19:23:43 +08:00