74 lines
1.8 KiB
QML
74 lines
1.8 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Dialogs
|
|
import QtQuick.Layouts
|
|
import EVChargerApp
|
|
|
|
NavigationPage {
|
|
title: qsTr("App Settings")
|
|
|
|
WhiteBox {
|
|
Layout.fillWidth: true
|
|
|
|
GridLayout {
|
|
anchors.fill: parent
|
|
columns: 2
|
|
|
|
Label {
|
|
text: qsTr("Number of app instances:")
|
|
font.bold: true
|
|
wrapMode: Text.Wrap
|
|
}
|
|
|
|
SpinBox {
|
|
value: theSettings.numberOfAppInstances
|
|
onValueModified: theSettings.numberOfAppInstances = value
|
|
from: 1
|
|
}
|
|
}
|
|
}
|
|
|
|
WhiteBox {
|
|
Layout.fillWidth: true
|
|
|
|
GridLayout {
|
|
anchors.fill: parent
|
|
columns: 2
|
|
|
|
Label {
|
|
text: qsTr("solalaweb key:")
|
|
font.bold: true
|
|
wrapMode: Text.Wrap
|
|
}
|
|
|
|
Button {
|
|
text: theSettings.solalawebKey == "" ? qsTr("Select...") : qsTr("Replace...")
|
|
onClicked: keyFileDialog.open()
|
|
|
|
FileDialog {
|
|
id: keyFileDialog
|
|
fileMode: FileDialog.OpenFile
|
|
onAccepted: theSettings.loadSolalawebKey(selectedFile)
|
|
}
|
|
}
|
|
|
|
Label {
|
|
text: qsTr("solalaweb cert:")
|
|
font.bold: true
|
|
wrapMode: Text.Wrap
|
|
}
|
|
|
|
Button {
|
|
text: theSettings.solalawebCert == "" ? qsTr("Select...") : qsTr("Replace...")
|
|
onClicked: certFileDialog.open()
|
|
|
|
FileDialog {
|
|
id: certFileDialog
|
|
fileMode: FileDialog.OpenFile
|
|
onAccepted: theSettings.loadSolalawebCert(selectedFile)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|