LineEdit: use ColumnLayout instead of Item (also used in LineEditMulti)

This commit is contained in:
rating89us
2021-06-09 05:42:43 +02:00
committed by rating89us
parent 7c379e2cda
commit 52aef114fa
6 changed files with 150 additions and 123 deletions

View File

@@ -36,6 +36,7 @@ import "../components"
import "../components" as MoneroComponents
GridLayout {
id: grid
Layout.fillWidth: true
property alias walletName: walletName
property alias walletLocation: walletLocation
@@ -61,7 +62,7 @@ GridLayout {
MoneroComponents.LineEdit {
id: walletName
Layout.fillWidth: true
Layout.preferredWidth: grid.width/3
function verify(){
if(walletLocation === "" || /[\\\/]/.test(walletName.text)) return false;
@@ -82,7 +83,7 @@ GridLayout {
MoneroComponents.LineEdit {
id: walletLocation
Layout.fillWidth: true
Layout.preferredWidth: grid.width/3
labelText: qsTr("Wallet location") + translationManager.emptyString
labelFontSize: 14