From e0766ba532719a5533d5cf5b195553a1da0816ff Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 2 Nov 2018 15:38:52 +0100 Subject: [PATCH] Align buttons --- plasmoid/package/contents/ui/DeviceDelegate.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plasmoid/package/contents/ui/DeviceDelegate.qml b/plasmoid/package/contents/ui/DeviceDelegate.qml index 8702d262b..ab7b24c83 100644 --- a/plasmoid/package/contents/ui/DeviceDelegate.qml +++ b/plasmoid/package/contents/ui/DeviceDelegate.qml @@ -277,16 +277,19 @@ PlasmaComponents.ListItem } // Commands - PlasmaComponents.ListItem { + RowLayout { visible: rc.available + width: parent.width + PlasmaComponents.Label { text: i18n("Run command:") + Layout.fillWidth: true } + PlasmaComponents.Button { id: addCommandButton iconSource: "list-add" - anchors.right: parent.right tooltip: i18n("Add command") onClicked: rc.plugin.editCommands() }