Commit 2131daa0 authored by Nate Graham's avatar Nate Graham
Browse files

kcms/touchpad/applet: Make the popup close on click

BUG: 445982
FIXED-IN: 5.23.5
(cherry picked from commit 4cb2de98)
parent afb390d8
......@@ -56,20 +56,23 @@ Item {
connectedSources: dataSource.sources
}
Plasmoid.compactRepresentation: PlasmaCore.ToolTipArea {
id: toolTip
Plasmoid.compactRepresentation: PlasmaCore.IconItem {
implicitWidth: PlasmaCore.Units.iconSizes.small
implicitHeight: PlasmaCore.Units.iconSizes.small
Layout.minimumWidth: PlasmaCore.Units.iconSizes.small
Layout.minimumHeight: Layout.minimumWidth
source: plasmoid.icon
active: parent.containsMouse
mainText: plasmoid.title
subText: plasmoid.toolTipSubText
PlasmaCore.ToolTipArea {
mainText: plasmoid.title
subText: plasmoid.toolTipSubText
}
PlasmaCore.IconItem {
MouseArea {
anchors.fill: parent
source: plasmoid.icon
active: parent.containsMouse
enabled: root.hasTouchpad
onClicked: {
plasmoid.expanded = !plasmoid.expanded;
}
}
}
......
Markdown is supported
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