diff options
| author | Akseli Lahtinen <[email protected]> | 2026-03-05 11:46:28 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-03-06 09:55:03 +0000 |
| commit | fcbc7479769462505d39de5de498f76e75f3c78d (patch) | |
| tree | 707c363adcf6d8d366600ac261c173ac2dc10ab4 /src | |
| parent | 837034490b546beeb7d9a188134a2afb6f2d51b2 (diff) | |
KItemListController: Check for highlightEntireRow on rightClick
Like with leftclick, we should check this for rightclick.
If user has highlightEntireRow enabled and right clicks an
item, the item should be activated.
BUG: 508356
Diffstat (limited to 'src')
| -rw-r--r-- | src/kitemviews/kitemlistcontroller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistcontroller.cpp b/src/kitemviews/kitemlistcontroller.cpp index 7c9f77a2d..54e95e1d1 100644 --- a/src/kitemviews/kitemlistcontroller.cpp +++ b/src/kitemviews/kitemlistcontroller.cpp @@ -1747,7 +1747,7 @@ bool KItemListController::onPress(const QPointF &pos, const Qt::KeyboardModifier row->setPressed(true); } - if (rightClick && hitTargetIsRowEmptyRegion) { + if (rightClick && hitTargetIsRowEmptyRegion && !m_view->highlightEntireRow()) { // We have a right click outside the icon and text rect but within the hover highlight area. // We don't want items to get selected through this, so we return now. return true; |
