diff options
| author | stoffu <stoffu@protonmail.ch> | 2018-07-06 18:39:58 +0900 |
|---|---|---|
| committer | stoffu <stoffu@protonmail.ch> | 2018-11-30 11:22:32 +0900 |
| commit | c840e2b664dc03e4f06e401082891807a8fed4b3 (patch) | |
| tree | a1d2e81639047e5e98597f46edf1a8aff2583138 /wizard/WizardOptions.qml | |
| parent | 45781ab4a173fe0a747ed72140e10d18765b007e (diff) | |
| download | monzero-gui-c840e2b664dc03e4f06e401082891807a8fed4b3.tar.gz monzero-gui-c840e2b664dc03e4f06e401082891807a8fed4b3.tar.xz monzero-gui-c840e2b664dc03e4f06e401082891807a8fed4b3.zip | |
Allow adjusting number of rounds for the key derivation function
Diffstat (limited to 'wizard/WizardOptions.qml')
| -rw-r--r-- | wizard/WizardOptions.qml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/wizard/WizardOptions.qml b/wizard/WizardOptions.qml index 3406c036..c4366307 100644 --- a/wizard/WizardOptions.qml +++ b/wizard/WizardOptions.qml @@ -28,6 +28,7 @@ import QtQuick 2.2 import QtQml 2.2 +import QtQuick.Controls 2.0 import QtQuick.Layouts 1.1 import moneroComponents.NetworkType 1.0 import "../components" @@ -355,5 +356,35 @@ ColumnLayout { } } } + + RowLayout { + Layout.leftMargin: wizardLeftMargin + Layout.rightMargin: wizardRightMargin + Layout.topMargin: 50 * scaleRatio + Layout.alignment: Qt.AlignHCenter + Layout.fillWidth: true + visible: showAdvancedCheckbox.checked + + Text { + font.family: "Arial" + font.pixelSize: 16 * scaleRatio + color: "#4A4949" + text: qsTr("Number of KDF rounds:") + translationManager.emptyString + } + TextField { + id: kdfRoundsText + font.family: "Arial" + font.pixelSize: 16 * scaleRatio + Layout.preferredWidth: 60 + horizontalAlignment: TextInput.AlignRight + selectByMouse: true + color: "#4A4949" + text: persistentSettings.kdfRounds + validator: IntValidator { bottom: 1 } + onTextEdited: { + kdfRoundsText.text = persistentSettings.kdfRounds = parseInt(kdfRoundsText.text) >= 1 ? parseInt(kdfRoundsText.text) : 1; + } + } + } } |
