Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
547c9186
Commit
547c9186
authored
Nov 19, 2021
by
Benjamin Port
Committed by
Ben Cooksley
Dec 16, 2021
Browse files
Allow to trigger show desktop through keyboard navigation
parent
002f0c4b
Pipeline
#111059
passed with stage
in 5 minutes and 55 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
applets/showdesktop/package/contents/ui/main.qml
View file @
547c9186
...
...
@@ -17,13 +17,12 @@ import org.kde.plasma.private.showdesktop 0.1
QtObject
{
id
:
root
// you can't have an applet with just a compact representation :(
Plasmoid.preferredRepresentation
:
Plasmoid
.
fullRepresentation
Plasmoid.onActivated
:
showdesktop
.
showingDesktop
=
!
showdesktop
.
showingDesktop
Plasmoid.icon
:
plasmoid
.
configuration
.
icon
Plasmoid.title
:
i18n
(
"
Show Desktop
"
)
Plasmoid.toolTipSubText
:
i18n
(
"
Show the desktop by moving windows aside
"
)
Plasmoid.backgroundHints
:
PlasmaCore
.
Types
.
NoBackground
Plasmoid.keyboardActivationEnabled
:
true
// QtObject has no default property
property
QtObject
showdesktop
:
ShowDesktop
{
}
...
...
@@ -36,7 +35,8 @@ QtObject {
showdesktop
.
minimizeAll
()
}
Plasmoid.fullRepresentation
:
PlasmaCore.ToolTipArea
{
Plasmoid.compactRepresentation
:
PlasmaCore.ToolTipArea
{
readonly
property
bool
inPanel
:
(
plasmoid
.
location
===
PlasmaCore
.
Types
.
TopEdge
||
plasmoid
.
location
===
PlasmaCore
.
Types
.
RightEdge
||
plasmoid
.
location
===
PlasmaCore
.
Types
.
BottomEdge
...
...
@@ -75,5 +75,6 @@ QtObject {
}
}
}
Plasmoid.fullRepresentation
:
Plasmoid
.
compactRepresentation
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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