This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Michael Zanetti 93c91d71bd more work
2018-02-25 05:48:36 +01:00

39 lines
989 B
QML

import QtQuick 2.8
import QtQuick.Controls 2.1
import QtQuick.Controls.Material 2.1
import QtQuick.Layouts 1.3
import "../components"
import Guh 1.0
Page {
id: root
header: GuhHeader {
text: "Plugins"
backButtonVisible: true
onBackPressed: pageStack.pop()
}
ListView {
anchors.fill: parent
model: Engine.deviceManager.plugins
clip: true
delegate: ItemDelegate {
width: parent.width
contentItem: RowLayout {
Label {
Layout.fillWidth: true
text: model.name
}
Image {
source: "../images/next.svg"
Layout.preferredHeight: parent.height
Layout.preferredWidth: height
}
}
onClicked: pageStack.push(Qt.resolvedUrl("PluginParamsPage.qml"), {plugin: Engine.deviceManager.plugins.get(index)})
}
}
}