From 00c290e68d26656bafa3b3649f3dd7343d813a60 Mon Sep 17 00:00:00 2001 From: Igor Malinovskiy Date: Tue, 30 Oct 2018 10:54:39 +0200 Subject: [PATCH] Add TLS-over-SSH option to Connection dialog --- src/qml/ConnectionSettignsDialog.qml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/src/qml/ConnectionSettignsDialog.qml b/src/qml/ConnectionSettignsDialog.qml index a4c803680..b7fc1257e 100644 --- a/src/qml/ConnectionSettignsDialog.qml +++ b/src/qml/ConnectionSettignsDialog.qml @@ -138,19 +138,26 @@ Dialog { Tab { id: mainTab + anchors.fill: parent + anchors.margins: 10 title: qsTranslate("RDM","Connection Settings") ScrollView { - ColumnLayout { - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: PlatformUtils.isOSX()? 5 : 10 + id: mainSettingsScrollView + width: settingsTabs.width - 20 + height: settingsTabs.height + + ColumnLayout { + width: mainSettingsScrollView.width + height: children.height SettingsGroupTitle { text: qsTranslate("RDM","Main Settings") } GridLayout { columns: 2 + Layout.fillWidth: true + Label { text: qsTranslate("RDM","Name:") } TextField { @@ -202,7 +209,7 @@ Dialog { id: sslRadioButton Layout.columnSpan: 2 text: qsTranslate("RDM","SSL") - checked: root.settings ? root.settings.sslEnabled : false + checked: root.settings ? root.settings.sslEnabled && !root.sshEnabled : false Component.onCompleted: root.sslEnabled = Qt.binding(function() { return sslRadioButton.checked }) onCheckedChanged: { root.settings.sslEnabled = checked @@ -358,6 +365,16 @@ Dialog { text: root.settings ? root.settings.sshPassword : "" onTextChanged: root.settings.sshPassword = text } + } + + BetterCheckbox { + id: sshTLSoverSSHCheckbox + objectName: "rdm_connection_security_ssh_tls_over_ssh" + Layout.fillWidth: true + Layout.columnSpan: 2 + text: qsTranslate("RDM","Enable TLS-over-SSH (AWS ElastiCache Encryption in-transit)") + checked: root.settings ? root.settings.sslEnabled && root.sshEnabled : false + onCheckedChanged: root.settings.sslEnabled = checked } } }