mirror of
https://github.com/lubosz/overte.git
synced 2025-04-11 13:42:07 +02:00
Fix highlighting
This commit is contained in:
parent
010f7121a3
commit
9c5d318341
1 changed files with 14 additions and 7 deletions
|
@ -244,13 +244,9 @@ Item {
|
|||
z: 1
|
||||
}
|
||||
MouseArea {
|
||||
anchors.fill: parent;
|
||||
acceptedButtons: Qt.LeftButton;
|
||||
onClicked: {
|
||||
Tablet.playSound(TabletEnums.ButtonClick);
|
||||
goFunction("hifi://" + hifiUrl);
|
||||
}
|
||||
hoverEnabled: true;
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.LeftButton
|
||||
hoverEnabled: true
|
||||
onContainsMouseChanged: {
|
||||
// Use onContainsMouseChanged rather than onEntered and onExited because the latter aren't always
|
||||
// triggered correctly - e.g., if drag rightwards from right hand side of a card to the next card
|
||||
|
@ -263,6 +259,17 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
MouseArea {
|
||||
// Separate MouseArea for click handling so that it doesn't interfere with hovering and interaction
|
||||
// with containing ListView.
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.LeftButton
|
||||
hoverEnabled: false
|
||||
onClicked: {
|
||||
Tablet.playSound(TabletEnums.ButtonClick);
|
||||
goFunction("hifi://" + hifiUrl);
|
||||
}
|
||||
}
|
||||
StateImage {
|
||||
id: actionIcon;
|
||||
visible: !isAnnouncement;
|
||||
|
|
Loading…
Reference in a new issue