fix(StatusComboBox): Pointing hand cursor on hover (#862)

This commit is contained in:
Igor Sirotin 2022-08-18 15:07:16 +03:00 committed by GitHub
parent 9f6f9905e9
commit 72750ef60c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 4 deletions

View File

@ -76,6 +76,13 @@ Item {
: comboBox.hovered : comboBox.hovered
? Theme.palette.primaryColor2 ? Theme.palette.primaryColor2
: "transparent" : "transparent"
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.NoButton
enabled: root.enabled
}
} }
contentItem: StatusBaseText { contentItem: StatusBaseText {

View File

@ -15,11 +15,10 @@ ItemDelegate {
icon.width: 16 icon.width: 16
icon.height: 16 icon.height: 16
contentItem: RowLayout { contentItem: RowLayout {
spacing: root.spacing spacing: root.spacing
StatusIcon { StatusIcon {
id: iconItem
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
visible: !!icon visible: !!icon
icon: root.icon.name icon: root.icon.name
@ -43,7 +42,14 @@ ItemDelegate {
background: Rectangle { background: Rectangle {
color: root.highlighted color: root.highlighted
? Theme.palette.statusPopupMenu.hoverBackgroundColor ? Theme.palette.statusPopupMenu.hoverBackgroundColor
: "transparent" : "transparent"
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.NoButton
enabled: root.enabled
}
} }
} }