Commit b85252ec authored by Nate Graham's avatar Nate Graham
Browse files

AppChooser portal: port from MouseArea to HoverHandler/TapHander

These are lighter weight and more future-proof.
parent a66a357e
......@@ -90,6 +90,14 @@ PWD.SystemDialog
height: grid.cellHeight
width: grid.cellWidth
HoverHandler {
acceptedButtons: Qt.NoButton
cursorShape: hovered ? Qt.PointingHandCursor : Qt.ArrowCursor
}
TapHandler {
onTapped: AppChooserData.applicationSelected(model.applicationDesktopFile)
}
Rectangle {
anchors.fill: parent
color: Kirigami.Theme.highlightColor
......@@ -97,15 +105,6 @@ PWD.SystemDialog
radius: 2
}
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onContainsMouseChanged: cursorShape = containsMouse ? Qt.PointingHandCursor : Qt.ArrowCursor
onClicked: AppChooserData.applicationSelected(model.applicationDesktopFile)
}
Column {
anchors.fill: parent
anchors.margins: Kirigami.Units.gridUnit / 2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment