Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KDE Portal for XDG Desktop
Commits
b85252ec
Commit
b85252ec
authored
Apr 29, 2022
by
Nate Graham
Browse files
AppChooser portal: port from MouseArea to HoverHandler/TapHander
These are lighter weight and more future-proof.
parent
a66a357e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AppChooserDialog.qml
View file @
b85252ec
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment