add base updatemanager
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
@@ -14,6 +16,7 @@ Rectangle {
|
||||
|
||||
property string title: ""
|
||||
property string status: ""
|
||||
property var consoleLogData: ""
|
||||
property int consoleHeight: 320
|
||||
property bool consoleOpen: false
|
||||
|
||||
@@ -66,6 +69,37 @@ Rectangle {
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
// ListView {
|
||||
// id: logView
|
||||
// clip: true
|
||||
// spacing: 2
|
||||
// model: root.consoleLogData
|
||||
// onModelChanged: positionViewAtEnd()
|
||||
// onCountChanged: positionViewAtEnd()
|
||||
//
|
||||
// ScrollBar.vertical: ScrollBar {
|
||||
// policy: ScrollBar.AsNeeded
|
||||
// width: 6
|
||||
// }
|
||||
//
|
||||
// delegate: Text {
|
||||
// width: logView.width
|
||||
// text: modelData
|
||||
// color: "#a6adc8"
|
||||
// font.family: "monospace"
|
||||
// font.pixelSize: 11
|
||||
// wrapMode: Text.WrapAnywhere
|
||||
// }
|
||||
// }
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: "Логи отсутствуют"
|
||||
color: "#585b70"
|
||||
font.pixelSize: 12
|
||||
visible: root.consoleLogData.length === 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user