From 72750ef60c2be99646e10130eddc3e3475931c0c Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Thu, 18 Aug 2022 15:07:16 +0300 Subject: [PATCH] fix(StatusComboBox): Pointing hand cursor on hover (#862) --- src/StatusQ/Controls/StatusComboBox.qml | 7 +++++++ src/StatusQ/Controls/StatusItemDelegate.qml | 14 ++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/StatusQ/Controls/StatusComboBox.qml b/src/StatusQ/Controls/StatusComboBox.qml index 8bbcd0ad..f6bc2bb7 100644 --- a/src/StatusQ/Controls/StatusComboBox.qml +++ b/src/StatusQ/Controls/StatusComboBox.qml @@ -76,6 +76,13 @@ Item { : comboBox.hovered ? Theme.palette.primaryColor2 : "transparent" + + MouseArea { + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + acceptedButtons: Qt.NoButton + enabled: root.enabled + } } contentItem: StatusBaseText { diff --git a/src/StatusQ/Controls/StatusItemDelegate.qml b/src/StatusQ/Controls/StatusItemDelegate.qml index 7e4552c7..a56b7577 100644 --- a/src/StatusQ/Controls/StatusItemDelegate.qml +++ b/src/StatusQ/Controls/StatusItemDelegate.qml @@ -15,11 +15,10 @@ ItemDelegate { icon.width: 16 icon.height: 16 - contentItem: RowLayout { + contentItem: RowLayout { spacing: root.spacing StatusIcon { - id: iconItem Layout.alignment: Qt.AlignVCenter visible: !!icon icon: root.icon.name @@ -43,7 +42,14 @@ ItemDelegate { background: Rectangle { color: root.highlighted - ? Theme.palette.statusPopupMenu.hoverBackgroundColor - : "transparent" + ? Theme.palette.statusPopupMenu.hoverBackgroundColor + : "transparent" + + MouseArea { + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + acceptedButtons: Qt.NoButton + enabled: root.enabled + } } }