mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-05 18:20:33 -08:00
24 lines
395 B
QML
24 lines
395 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import "." as Ext
|
|
|
|
Rectangle {
|
|
color: "lavender"
|
|
|
|
//Ext.Repl {}
|
|
|
|
function log(message) {
|
|
logModel.append({ message: message })
|
|
listView.positionViewAtEnd()
|
|
}
|
|
|
|
ListView {
|
|
id: listView
|
|
anchors.fill: parent
|
|
model: ListModel { id: logModel }
|
|
delegate: Text {
|
|
font.pixelSize: 14
|
|
text: message
|
|
}
|
|
}
|
|
}
|