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 Michał Cieślak
parent 2d3e7919f1
commit 93a709bf36
2 changed files with 17 additions and 4 deletions

View File

@ -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 {

View File

@ -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
}
}
}