35 lines
622 B
QML
35 lines
622 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import archpack
|
|
|
|
ListView {
|
|
id: root
|
|
clip: true
|
|
spacing: 2
|
|
model: consoleLogData
|
|
onModelChanged: positionViewAtEnd()
|
|
onCountChanged: positionViewAtEnd()
|
|
|
|
property var consoleLogData: ""
|
|
|
|
ScrollBar.vertical: ScrollBar {
|
|
policy: ScrollBar.AsNeeded
|
|
width: 6
|
|
}
|
|
|
|
delegate: Text {
|
|
width: root.width
|
|
text: modelData
|
|
color: Theme.color3
|
|
font.family: "monospace"
|
|
font.pixelSize: 11
|
|
wrapMode: Text.WrapAnywhere
|
|
|
|
// из-зa предупреждение qmllint
|
|
required property var modelData
|
|
}
|
|
}
|
|
|