From fcbc7479769462505d39de5de498f76e75f3c78d Mon Sep 17 00:00:00 2001 From: Akseli Lahtinen Date: Thu, 5 Mar 2026 11:46:28 +0200 Subject: 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 --- src/kitemviews/kitemlistcontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kitemviews/kitemlistcontroller.cpp') 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; -- cgit v1.3