From 746fec97e2e7af68531f5db59f317a270ba196f2 Mon Sep 17 00:00:00 2001 From: woblight Date: Sat, 21 Sep 2024 20:35:28 +0200 Subject: [PATCH] Add missing LogWIndow.qml --- LogWindow.qml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 LogWindow.qml diff --git a/LogWindow.qml b/LogWindow.qml new file mode 100644 index 0000000..2527911 --- /dev/null +++ b/LogWindow.qml @@ -0,0 +1,35 @@ +import QtQuick +import GitAddonsManager.engine +import QtQuick.Controls + +ApplicationWindow { + id: logWindow + visible: false + onVisibleChanged: area.cursorPosition = area.text.length + ScrollView + { + id: view + Flickable + { + id: flick + TextArea.flickable: TextArea + { + id: area + readOnly: true + textFormat: TextEdit.RichText + Connections + { + target: Engine + function onLogMessage(a) + { + area.append(a) + flick.contentY = flick.contentHeight - flick.height + flick.contentX = 0 + } + } + } + } + + anchors.fill: parent + } +}