parent
bc9ffbfc8b
commit
756e308598
@ -36,12 +36,12 @@ import "../components"
|
|||||||
import "../delegates"
|
import "../delegates"
|
||||||
import Nymea 1.0
|
import Nymea 1.0
|
||||||
|
|
||||||
Page {
|
SettingsPageBase {
|
||||||
id: root
|
id: root
|
||||||
property var plugin: null
|
property var plugin: null
|
||||||
|
|
||||||
header: NymeaHeader {
|
header: NymeaHeader {
|
||||||
text: qsTr("%1 settings").arg(plugin.name)
|
text: plugin.name
|
||||||
backButtonVisible: true
|
backButtonVisible: true
|
||||||
onBackPressed: pageStack.pop()
|
onBackPressed: pageStack.pop()
|
||||||
|
|
||||||
@ -66,23 +66,17 @@ Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Flickable {
|
SettingsPageSectionHeader {
|
||||||
anchors.fill: parent
|
text: qsTr("Settings")
|
||||||
contentHeight: column.implicitHeight
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
Repeater {
|
||||||
id: column
|
model: plugin.paramTypes
|
||||||
width: parent.width
|
|
||||||
|
|
||||||
Repeater {
|
delegate: ParamDelegate {
|
||||||
model: plugin.paramTypes
|
Layout.fillWidth: true
|
||||||
|
paramType: root.plugin.paramTypes.get(index)
|
||||||
delegate: ParamDelegate {
|
param: root.plugin.params.getParam(model.id)
|
||||||
Layout.fillWidth: true
|
|
||||||
paramType: root.plugin.paramTypes.get(index)
|
|
||||||
param: root.plugin.params.getParam(model.id)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -51,11 +51,8 @@ SettingsPageBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
SettingsPageSectionHeader {
|
||||||
Layout.fillWidth: true
|
text: qsTr("Installed integration plugins")
|
||||||
Layout.margins: app.margins
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
text: qsTr("This list shows the list of installed plugins on this %1 system.").arg(app.systemName)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
@ -66,7 +63,7 @@ SettingsPageBase {
|
|||||||
|
|
||||||
delegate: NymeaSwipeDelegate {
|
delegate: NymeaSwipeDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
property var plugin: pluginsProxy.get(index)
|
property Plugin plugin: pluginsProxy.get(index)
|
||||||
iconName: "../images/plugin.svg"
|
iconName: "../images/plugin.svg"
|
||||||
text: model.name
|
text: model.name
|
||||||
progressive: plugin.paramTypes.count > 0
|
progressive: plugin.paramTypes.count > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user