import QtQuick 2.2 import Sailfish.Silica 1.0 Dialog { id: unencryptedDialog canAccept: understandTextSwitch.checked && ownRiskTextSwitch.checked SilicaFlickable { anchors.fill: parent contentHeight: column.height + Theme.paddingLarge Column { id: column width: parent.width DialogHeader { } LinkedLabel { x: Theme.horizontalPageMargin width: parent.width - 2*x wrapMode: Text.Wrap linkColor: Theme.highlightColor text: qsTr("" + qsTr("Your username and password will be transferred unencrypted over the network when you enable this option.") + "
" + qsTr("Do not accept unless you know exactly what you are doing!") + "

" + qsTr("More information...") + "") } TextSwitch { id: understandTextSwitch text: qsTr("I do understand") onCheckedChanged: if (!checked) ownRiskTextSwitch.checked = false } TextSwitch { id: ownRiskTextSwitch opacity: understandTextSwitch.checked ? 1.0 : 0.0 Behavior on opacity { FadeAnimator {} } text: qsTr("I use this option at my own risk") } } } allowedOrientations: appWindow.allowedOrientations }