aboutsummaryrefslogtreecommitdiff
path: root/wizard
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-12-28 11:41:47 -0800
committerAlexander Blair <snipa@jagtech.io>2020-12-28 11:41:47 -0800
commit0194cf8f2246c4a261904d725f90b9a1b4e12800 (patch)
tree249f1bccecb2e6e76d3f8a55f548431747898bf9 /wizard
parentad06fcc79e60e4a1d731288391abe7b8a05ca93d (diff)
parentba4d6993b78a3a0e7c0d0b0f09ab071b1bb5e447 (diff)
downloadmonzero-gui-0194cf8f2246c4a261904d725f90b9a1b4e12800.tar.gz
monzero-gui-0194cf8f2246c4a261904d725f90b9a1b4e12800.tar.xz
monzero-gui-0194cf8f2246c4a261904d725f90b9a1b4e12800.zip
Merge pull request #3280
ba4d6993 LineEdit: fix padding, fix inline buttons layout, multiple btns support (xiphon)
Diffstat (limited to 'wizard')
-rw-r--r--wizard/WizardDaemonSettings.qml17
-rw-r--r--wizard/WizardWalletInput.qml17
2 files changed, 20 insertions, 14 deletions
diff --git a/wizard/WizardDaemonSettings.qml b/wizard/WizardDaemonSettings.qml
index 7155db10..3f1f2204 100644
--- a/wizard/WizardDaemonSettings.qml
+++ b/wizard/WizardDaemonSettings.qml
@@ -81,13 +81,16 @@ ColumnLayout {
placeholderText: qsTr("Default") + translationManager.emptyString
placeholderFontSize: 15
text: persistentSettings.blockchainDataDir
- inlineButton.small: true
- inlineButtonText: qsTr("Browse") + translationManager.emptyString
- inlineButton.onClicked: {
- if(persistentSettings.blockchainDataDir != "");
- blockchainFileDialog.folder = "file://" + persistentSettings.blockchainDataDir;
- blockchainFileDialog.open();
- blockchainFolder.focus = true;
+
+ MoneroComponents.InlineButton {
+ small: true
+ text: qsTr("Browse") + translationManager.emptyString
+ onClicked: {
+ if(persistentSettings.blockchainDataDir != "");
+ blockchainFileDialog.folder = "file://" + persistentSettings.blockchainDataDir;
+ blockchainFileDialog.open();
+ blockchainFolder.focus = true;
+ }
}
}
diff --git a/wizard/WizardWalletInput.qml b/wizard/WizardWalletInput.qml
index 5b2f3b69..e754a4f1 100644
--- a/wizard/WizardWalletInput.qml
+++ b/wizard/WizardWalletInput.qml
@@ -89,16 +89,19 @@ GridLayout {
placeholderText: "..."
placeholderFontSize: 16
text: appWindow.accountsDir + "/"
- inlineButton.small: true
- inlineButtonText: qsTr("Browse") + translationManager.emptyString
- inlineButton.onClicked: {
- fileWalletDialog.folder = walletManager.localPathToUrl(walletLocation.text)
- fileWalletDialog.open()
- walletLocation.focus = true
- }
onTextChanged: {
walletLocation.error = walletLocation.text === "";
}
+
+ MoneroComponents.InlineButton {
+ small: true
+ text: qsTr("Browse") + translationManager.emptyString
+ onClicked: {
+ fileWalletDialog.folder = walletManager.localPathToUrl(walletLocation.text)
+ fileWalletDialog.open()
+ walletLocation.focus = true
+ }
+ }
}
FileDialog {