Skip to content

Commit

Permalink
Merge 5ac60dc into 2df58f4
Browse files Browse the repository at this point in the history
  • Loading branch information
uglide committed Nov 1, 2018
2 parents 2df58f4 + 5ac60dc commit 40300d5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
13 changes: 12 additions & 1 deletion 3rdparty/3rdparty.pri
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@
OTHER_FILES += $$PWD/../src/resources/qml/3rdparty/php-unserialize-js/phpUnserialize.js

# qredisclient
include($$PWD/qredisclient/qredisclient.pri)
if(win32*):exists( $$PWD/qredisclient/qredisclient.lib ) {
message("Using prebuilt qredisclient")
INCLUDEPATH += $$PWD/qredisclient/src/
OPENSSL_LIB_PATH = C:\OpenSSL-Win32\lib\VC\static
LIBS += -L$$OPENSSL_LIB_PATH -llibeay32MD -L$$PWD/qredisclient/ -lqredisclient -lbotan -llibssh2
} else:unix*:exists( $$PWD/qredisclient/libqredisclient.a ) {
message("Using prebuilt qredisclient")
INCLUDEPATH += $$PWD/qredisclient/src/
LIBS += $$PWD/qredisclient/libqredisclient.a
} else {
include($$PWD/qredisclient/qredisclient.pri)
}

# Asyncfuture
include($$PWD/asyncfuture/asyncfuture.pri)
Expand Down
27 changes: 22 additions & 5 deletions src/qml/ConnectionSettignsDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 (<b>AWS ElastiCache</b> <b>Encryption in-transit</b>)")
checked: root.settings ? root.settings.sslEnabled && root.sshEnabled : false
onCheckedChanged: root.settings.sslEnabled = checked
}
}
}
Expand Down

0 comments on commit 40300d5

Please sign in to comment.