mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 00:37:26 -04:00
LineEdit: use ColumnLayout instead of Item (also used in LineEditMulti)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user