Added various improvements

This commit is contained in:
Yury Shuvakin
2024-07-10 17:32:51 +09:00
parent d708fc3499
commit a6a0513186
5 changed files with 134 additions and 60 deletions

View File

@@ -84,9 +84,9 @@ QuickControls.ApplicationWindow {
}
Indicator {
label: qsTr("Output current")
label: qsTr("Input current")
indicator: qsTr("A")
value.text: CanController.outputCurrent
value.text: CanController.inputCurrent
value.readOnly: true
Layout.fillWidth: true
Layout.preferredWidth: 100
@@ -97,7 +97,7 @@ QuickControls.ApplicationWindow {
text: CanController.isVkuClosed ? qsTr("VKU opening") : qsTr("VKU closing")
Layout.fillWidth: true
Layout.topMargin: Ui.scale(12)
onClicked: CanController.vkuClosure()
onClicked: CanController.switchVkuClosure()
}
}
@@ -235,6 +235,10 @@ QuickControls.ApplicationWindow {
Layout.fillWidth: true
}
}
QuickControls.ScrollBar.vertical: QuickControls.ScrollBar {
policy: size > 0 && size < 1 ? QuickControls.ScrollBar.AlwaysOn : QuickControls.ScrollBar.AsNeeded
}
}
}