From eefe2ce254360968da053d541606a12db04a5dc4 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Sat, 5 Mar 2022 23:36:14 +0100 Subject: [PATCH] Remove action buttons (#1) --- Main.qml | 67 -------------------------------------------------------- 1 file changed, 67 deletions(-) diff --git a/Main.qml b/Main.qml index ac7e6b6..d5db557 100644 --- a/Main.qml +++ b/Main.qml @@ -306,40 +306,6 @@ Rectangle { return text } - actionItems: [ - ActionButton { - iconSource: "system-suspend" - text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel","Suspend to RAM","Sleep") - fontSize: parseInt(config.fontSize) + 1 - onClicked: sddm.suspend() - enabled: sddm.canSuspend - visible: !inputPanel.keyboardActive - }, - ActionButton { - iconSource: "system-reboot" - text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart") - fontSize: parseInt(config.fontSize) + 1 - onClicked: sddm.reboot() - enabled: sddm.canReboot - visible: !inputPanel.keyboardActive - }, - ActionButton { - iconSource: "system-shutdown" - text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") - fontSize: parseInt(config.fontSize) + 1 - onClicked: sddm.powerOff() - enabled: sddm.canPowerOff - visible: !inputPanel.keyboardActive - }, - ActionButton { - iconSource: "system-user-prompt" - text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "For switching to a username and password prompt", "Other…") - fontSize: parseInt(config.fontSize) + 1 - onClicked: mainStack.push(userPromptComponent) - enabled: true - visible: !userListComponent.showUsernamePrompt && !inputPanel.keyboardActive - }] - onLoginRequest: { root.notificationMessage = "" sddm.login(username, password, sessionButton.currentIndex) @@ -558,39 +524,6 @@ Rectangle { sddm.login(username, password, sessionButton.currentIndex) } - actionItems: [ - ActionButton { - iconSource: "system-suspend" - text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel","Suspend to RAM","Sleep") - fontSize: parseInt(config.fontSize) + 1 - onClicked: sddm.suspend() - enabled: sddm.canSuspend - visible: !inputPanel.keyboardActive - }, - ActionButton { - iconSource: "system-reboot" - text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart") - fontSize: parseInt(config.fontSize) + 1 - onClicked: sddm.reboot() - enabled: sddm.canReboot - visible: !inputPanel.keyboardActive - }, - ActionButton { - iconSource: "system-shutdown" - text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") - fontSize: parseInt(config.fontSize) + 1 - onClicked: sddm.powerOff() - enabled: sddm.canPowerOff - visible: !inputPanel.keyboardActive - }, - ActionButton { - iconSource: "system-user-list" - text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","List Users") - fontSize: parseInt(config.fontSize) + 1 - onClicked: mainStack.pop() - visible: !inputPanel.keyboardActive - } - ] } } -- 2.47.2