File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 13
13
property alias iconSource: icon .source
14
14
property alias customIcon: iconContainer .data
15
15
property alias enabled: input .enabled
16
+ property alias validator: input .validator
16
17
17
18
signal iconClicked
18
19
signal textEdited
Original file line number Diff line number Diff line change @@ -179,6 +179,9 @@ PageStack {
179
179
placeholderText: qsTr (" Enter address..." )
180
180
text: root .recipient .address
181
181
onTextEdited: root .recipient .address = address .text
182
+ validator: RegExpValidator {
183
+ regExp: / ^ [1-9A-HJ-NP-Za-km-z ac-hj-np-z 02-9 ] + $ /
184
+ }
182
185
}
183
186
184
187
RowLayout {
@@ -244,6 +247,10 @@ PageStack {
244
247
root .recipient .amount .format ()
245
248
}
246
249
}
250
+ validator: RegExpValidator {
251
+ regExp: / ^ (0| [1-9 ] \d * )(\. \d {0,8} )? $ /
252
+ }
253
+ maximumLength: 17
247
254
}
248
255
Item {
249
256
width: unitLabel .width + flipIcon .width
You can’t perform that action at this time.
0 commit comments