Commit b7332f88 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[app] Port runcommand page to ScrollablePage

(cherry picked from commit 3a309cc7)
parent afb8e4e8
......@@ -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
}
}
}
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