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 @@ -162,6 +162,9 @@ PageStack {
162
162
placeholderText: qsTr (" Enter address..." )
163
163
text: root .recipient .address
164
164
onTextEdited: root .recipient .address = address .text
165
+ validator: RegExpValidator {
166
+ regExp: / ^ [1-9A-HJ-NP-Za-km-z ac-hj-np-z 02-9 ] + $ /
167
+ }
165
168
}
166
169
167
170
RowLayout {
@@ -227,6 +230,10 @@ PageStack {
227
230
root .recipient .amount .format ()
228
231
}
229
232
}
233
+ validator: RegExpValidator {
234
+ regExp: / ^ (0| [1-9 ] \d * )(\. \d {0,8} )? $ /
235
+ }
236
+ maximumLength: 17
230
237
}
231
238
Item {
232
239
width: unitLabel .width + flipIcon .width
You can’t perform that action at this time.
0 commit comments