Differential D20144 Diff 55139 desktoppackage/contents/configuration/panelconfiguration/MoreSettingsMenu.qml
Changeset View
Changeset View
Standalone View
Standalone View
desktoppackage/contents/configuration/panelconfiguration/MoreSettingsMenu.qml
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Line(s) | 87 | PlasmaComponents.ButtonColumn { | |||
---|---|---|---|---|---|
122 | } | 122 | } | ||
123 | } | 123 | } | ||
124 | PlasmaComponents.ToolButton { | 124 | PlasmaComponents.ToolButton { | ||
125 | Layout.fillWidth: true | 125 | Layout.fillWidth: true | ||
126 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Maximize Panel") | 126 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Maximize Panel") | ||
127 | iconSource: panel.formFactor === PlasmaCore.Types.Vertical ? "zoom-fit-height" : "zoom-fit-width" | 127 | iconSource: panel.formFactor === PlasmaCore.Types.Vertical ? "zoom-fit-height" : "zoom-fit-width" | ||
128 | onClicked: panel.maximize(); | 128 | onClicked: panel.maximize(); | ||
129 | } | 129 | } | ||
130 | PlasmaComponents.ToolButton { | | |||
131 | Layout.fillWidth: true | | |||
132 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Lock Widgets") | | |||
133 | iconSource: "document-encrypt" | | |||
134 | onClicked: { | | |||
135 | plasmoid.action("lock widgets").trigger(); | | |||
136 | configDialog.close(); | | |||
137 | } | | |||
138 | } | | |||
139 | PlasmaComponents.ToolButton { | | |||
140 | Layout.fillWidth: true | | |||
141 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Remove Panel") | | |||
142 | iconSource: "delete" | | |||
143 | onClicked: { | | |||
144 | contextMenu.visible = false; | | |||
145 | plasmoid.action("remove").trigger(); | | |||
146 | } | | |||
147 | } | | |||
148 | } | 130 | } | ||
149 | 131 | | |||
150 | function hide() { | 132 | function hide() { | ||
151 | visible = false; | 133 | visible = false; | ||
152 | } | 134 | } | ||
153 | 135 | | |||
154 | Component.onCompleted: { | 136 | Component.onCompleted: { | ||
155 | dialogRoot.closeContextMenu.connect(hide); | 137 | dialogRoot.closeContextMenu.connect(hide); | ||
156 | } | 138 | } | ||
157 | } | 139 | } |