From 3a309cc72f10307b3118dd215943796cb45c0b99 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 12 Jul 2020 02:25:38 +0200 Subject: [PATCH] [app] Port runcommand page to ScrollablePage --- app/qml/runcommand.qml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/qml/runcommand.qml b/app/qml/runcommand.qml index 202d1d00f..16860ff2b 100644 --- a/app/qml/runcommand.qml +++ b/app/qml/runcommand.qml @@ -24,7 +24,7 @@ import QtQuick.Layouts 1.1 import org.kde.kirigami 2.12 as Kirigami import org.kde.kdeconnect 1.0 -Kirigami.Page +Kirigami.ScrollablePage { id: root title: i18nd("kdeconnect-app", "Run command") @@ -41,23 +41,22 @@ Kirigami.Page ListView { id: commandsList - anchors.fill: parent model: RemoteCommandsModel { deviceId: pluginInterface.deviceId } delegate: Kirigami.BasicListItem { width: ListView.view.width - label: name + "\n" + command + label: name + subtitle: command onClicked: pluginInterface.triggerCommand(key) reserveSpaceForIcon: false } - } - Kirigami.PlaceholderMessage { - visible: commandsList.count === 0 - text: i18nd("kdeconnect-app", "No commands defined") - anchors.centerIn: parent + Kirigami.PlaceholderMessage { + visible: commandsList.count === 0 + text: i18nd("kdeconnect-app", "No commands defined") + anchors.centerIn: parent + } } - }