fix volume expand: use MouseArea on icon/label instead of TapHandler on Row
This commit is contained in:
parent
7aadbed03e
commit
20d3ad12f9
1 changed files with 10 additions and 5 deletions
|
|
@ -66,17 +66,22 @@ M.BarSection {
|
||||||
icon: root._volumeIcon
|
icon: root._volumeIcon
|
||||||
color: root._volumeColor
|
color: root._volumeColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
onClicked: root._expanded = !root._expanded
|
||||||
|
}
|
||||||
}
|
}
|
||||||
M.BarLabel {
|
M.BarLabel {
|
||||||
label: Math.round(root.volume * 100) + "%"
|
label: Math.round(root.volume * 100) + "%"
|
||||||
minText: "100%"
|
minText: "100%"
|
||||||
color: root._volumeColor
|
color: root._volumeColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
TapHandler {
|
cursorShape: Qt.PointingHandCursor
|
||||||
cursorShape: Qt.PointingHandCursor
|
onClicked: root._expanded = !root._expanded
|
||||||
onTapped: root._expanded = !root._expanded
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
WheelHandler {
|
WheelHandler {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue