aboutsummaryrefslogtreecommitdiffstats
path: root/jetting-interface/DebugConsole.qml
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-03-23 16:48:32 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-03-23 16:48:32 +0100
commit8bcf948b76c9564cb38d3611228ccaf73890a548 (patch)
tree5d7bc5aec767ff7911c067d1bc137f6905919c91 /jetting-interface/DebugConsole.qml
parent61debe99a269bf7e87f6ba2f8d2a376e619fcf12 (diff)
downloadQtXpl2-8bcf948b76c9564cb38d3611228ccaf73890a548.tar.gz
QtXpl2-8bcf948b76c9564cb38d3611228ccaf73890a548.zip
Rename demo/ → jetting-interface/, mock-server/ → mock-jetting-controller/
Executables: QtXpl2Demo → JettingInterfaceDemo, Xpl2MockServer → MockJettingController. Dev log prefixes: "Demo" → "JI", "MockServer" → "MockJC". Window title → "Jetting Interface".
Diffstat (limited to 'jetting-interface/DebugConsole.qml')
-rw-r--r--jetting-interface/DebugConsole.qml34
1 files changed, 34 insertions, 0 deletions
diff --git a/jetting-interface/DebugConsole.qml b/jetting-interface/DebugConsole.qml
new file mode 100644
index 0000000..9a5a9ff
--- /dev/null
+++ b/jetting-interface/DebugConsole.qml
@@ -0,0 +1,34 @@
+pragma ComponentBehavior: Bound
+
+import QtQuick
+import QtQuick.Controls
+
+Rectangle {
+ id: debugRoot
+
+ function appendLog(msg: string): void {
+ let ts = new Date().toLocaleTimeString(Qt.locale(), "HH:mm:ss.zzz");
+ debugLog.text += "[" + ts + "] " + msg + "\n";
+ debugLog.cursorPosition = debugLog.text.length;
+ }
+
+ border.color: "#444"
+ color: "#1e1e1e"
+ radius: 4
+
+ ScrollView {
+ anchors.fill: parent
+ anchors.margins: 4
+
+ TextArea {
+ id: debugLog
+
+ background: null
+ color: "#cccccc"
+ font.family: "monospace"
+ font.pointSize: 9
+ readOnly: true
+ wrapMode: TextEdit.Wrap
+ }
+ }
+}