From 5ff9705937ffc1647587e1b228effd30c8a0e309 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Mon, 23 Mar 2026 14:55:32 +0100 Subject: Refactor Main.qml into separate components and add comments Extract ConnectionPage, CertTrustDialog, and DebugConsole from Main.qml into their own QML files. Add inline comments to OpcUaMonitoredNode::handleValueUpdated explaining the range write guard, value store, and timestamp update. --- demo/CertTrustDialog.qml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 demo/CertTrustDialog.qml (limited to 'demo/CertTrustDialog.qml') diff --git a/demo/CertTrustDialog.qml b/demo/CertTrustDialog.qml new file mode 100644 index 0000000..877d68f --- /dev/null +++ b/demo/CertTrustDialog.qml @@ -0,0 +1,24 @@ +// CertTrustDialog.qml — Modal dialog for OPC UA certificate trust prompts. + +import QtQuick.Controls +import Bobink + +Dialog { + id: certTrustDialog + + property string certInfo + + anchors.centerIn: parent + implicitWidth: 400 + modal: true + standardButtons: Dialog.Yes | Dialog.No + title: "Certificate Trust" + + onAccepted: Bobink.acceptCertificate() + onRejected: Bobink.rejectCertificate() + + Label { + text: certTrustDialog.certInfo + wrapMode: Text.Wrap + } +} -- cgit v1.2.3