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

@@ -71,6 +71,8 @@ ApplicationWindow {
ListView {
id: menuView
clip: true
boundsBehavior: Flickable.StopAtBounds
property var menuModel: [
{"text": qsTr("AKB monitor"), "icon": "qrc:/Icons/akb-monitor.svg"},
@@ -87,6 +89,7 @@ ApplicationWindow {
width: ListView.view.width
text: menuView.menuModel[modelData].text
icon.source: menuView.menuModel[modelData].icon
highlighted: ListView.isCurrentItem
minimized: pane.minimized
onClicked: menuView.currentIndex = index
}
@@ -291,7 +294,7 @@ ApplicationWindow {
}
Layout.preferredWidth: languagesLayout.implicitWidth
Layout.fillHeight: true
Layout.preferredHeight: languagesLayout.implicitHeight
}
}
@@ -331,6 +334,7 @@ ApplicationWindow {
}
Screens.DebugInformationScreen {
id: debugScreen
}
Screens.BmsServiceScreen {
@@ -351,6 +355,8 @@ ApplicationWindow {
serialLabel.text = "-"
firmwareLabel.text = "-"
}
debugScreen.printMessage(BmsInterface.getConnectedPortName(), true)
}
onMessageDialog: {
@@ -494,5 +500,6 @@ ApplicationWindow {
Component.onCompleted: {
connectionDialog.open()
Qt.callLater(debugScreen.printMessage, qsTr("Tool started"), true)
}
}