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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user