aboutsummaryrefslogtreecommitdiffstats
path: root/demo/CertTrustDialog.qml
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-03-23 14:55:32 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-03-23 14:55:32 +0100
commit5ff9705937ffc1647587e1b228effd30c8a0e309 (patch)
treee1c5d9397ebbd68dd593788d6b09688a1d6ee8bd /demo/CertTrustDialog.qml
parent47096b375797c38b5b1e79f1366f1152cc292875 (diff)
downloadBobinkQtOpcUa-5ff9705937ffc1647587e1b228effd30c8a0e309.tar.gz
BobinkQtOpcUa-5ff9705937ffc1647587e1b228effd30c8a0e309.zip
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.
Diffstat (limited to 'demo/CertTrustDialog.qml')
-rw-r--r--demo/CertTrustDialog.qml24
1 files changed, 24 insertions, 0 deletions
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
+ }
+}