Implemented a screen displaying the history of operations with the board. Added dialogs for displaying messages and statuses
This commit is contained in:
35
qml/Screens/DebugInformationScreen.qml
Normal file
35
qml/Screens/DebugInformationScreen.qml
Normal file
@@ -0,0 +1,35 @@
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
|
||||
import Controls 1.0 as Controls
|
||||
import Cubo 1.0
|
||||
|
||||
ColumnLayout {
|
||||
spacing: 20
|
||||
|
||||
Controls.Frame {
|
||||
ScrollView {
|
||||
anchors.fill: parent
|
||||
Controls.TextArea {
|
||||
id: outputArea
|
||||
}
|
||||
}
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
Controls.Button {
|
||||
text: qsTr("Clear")
|
||||
Layout.preferredWidth: 120
|
||||
onClicked: outputArea.clear()
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: BmsInterface
|
||||
|
||||
onStatusMessage: {
|
||||
outputArea.append(msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user