// DebugConsole.qml — Timestamped log output panel. import QtQuick import QtQuick.Controls Rectangle { id: debugConsole function appendLog(msg) { let ts = new Date().toLocaleTimeString(Qt.locale(), "HH:mm:ss"); 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 } } }