Added scrollbars for lists and text fields. Added saving to the path settings for configuration files and the current language. Various UI improvements

This commit is contained in:
Yury Shuvakin
2022-08-28 16:32:07 +03:00
parent 4a0f78c247
commit 545977a4b7
18 changed files with 607 additions and 415 deletions

View File

@@ -1,4 +1,5 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtGraphicalEffects 1.0
@@ -123,6 +124,7 @@ Item {
header: cellListHeader
delegate: cellListDelegate
ScrollBar.vertical: Controls.ScrollBar {}
}
Layout.fillWidth: true
@@ -145,6 +147,7 @@ Item {
header: cellListHeader
delegate: cellListDelegate
ScrollBar.vertical: Controls.ScrollBar {}
}
Layout.fillWidth: true
@@ -182,9 +185,16 @@ Item {
onVisibleChanged: getValues()
Timer {
id: refreshValuesTimer
interval: 5000
onTriggered: getValues()
}
function getValues() {
if (BmsInterface.isPortConnected() && visible) {
BmsInterface.commands().getCells()
refreshValuesTimer.start()
}
}
}