diff --git a/tests/journeyquery.cpp b/tests/journeyquery.cpp index 7894f903f087070bf26bb02418d20233d7c96e28..c57c68545baf30e26a3ea6a31d2fa9af9ae6c565 100644 --- a/tests/journeyquery.cpp +++ b/tests/journeyquery.cpp @@ -85,6 +85,11 @@ public: }); } + Q_INVOKABLE void setAllowInsecure(bool insecure) + { + ptMgr.setAllowInsecureBackends(insecure); + } + bool loading() const { return m_loading; } QString errorMessage() const { return m_errorMsg; } diff --git a/tests/journeyquery.qml b/tests/journeyquery.qml index bb3b1f7965536a75a9672218173ad1a5541e06b2..20696612c32592035afa5e6bebf75134dce44ea5 100644 --- a/tests/journeyquery.qml +++ b/tests/journeyquery.qml @@ -230,6 +230,10 @@ Kirigami.ApplicationWindow { Kirigami.Page { ColumnLayout { anchors.fill: parent + QQC2.CheckBox { + text: "Allow insecure backends" + onToggled: _queryMgr.setAllowInsecure(checked) + } QQC2.ComboBox { id: exampleSelector Layout.fillWidth: true