Commit c3081226 authored by Björn Feber's avatar Björn Feber

Add alternatives button to applet configuration in panel edit mode

There is a configure button and an alternatives button in the context menu of an applet, but there is no alternatives button in the popup/overlay of an applet in the panel edit mode, so this adds that button, to make it more consistent and easier to find.

BUG: 405082
FIXED-IN: 5.16.0

Test Plan: Hover over an applet in the panel edit mode.

Reviewers: #plasma, #vdg, davidedmundson, broulik, ngraham

Reviewed By: #plasma, #vdg, broulik, ngraham

Subscribers: Codezela, broulik, davidedmundson, ngraham, ndavis, #vdg, plasma-devel, #plasma

Tags: #plasma, #vdg

Maniphest Tasks: T10047

Differential Revision:
parent 7659a96e
......@@ -349,6 +349,8 @@ MouseArea {
onVisualParentChanged: {
if (visualParent) {
alternativesButton.visible = currentApplet.applet.action("alternatives") && currentApplet.applet.action("alternatives").enabled;
configureButton.visible = currentApplet.applet.action("configure") && currentApplet.applet.action("configure").enabled;
closeButton.visible = currentApplet.applet.action("remove") && currentApplet.applet.action("remove").enabled;
label.text = currentApplet.applet.title;
......@@ -384,6 +386,16 @@ MouseArea {
PlasmaComponents.ToolButton {
id: alternativesButton
Layout.fillWidth: true
iconSource: "widget-alternatives"
text: i18n("Show Alternatives...")
onClicked: {
tooltip.visible = false;
PlasmaComponents.ToolButton {
id: closeButton
Layout.fillWidth: true
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