diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-14 04:25:05 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-14 04:25:05 +0800 |
commit | faa307362543bb89f10458e83aa03c557977937f (patch) | |
tree | 478d86e3d303b3dbc2b5071ffb42e1ca69da0c6c /ethereal | |
parent | 7f94b266c7c986651f09b57ef919ef3eaf147e66 (diff) | |
download | dexon-faa307362543bb89f10458e83aa03c557977937f.tar.gz dexon-faa307362543bb89f10458e83aa03c557977937f.tar.zst dexon-faa307362543bb89f10458e83aa03c557977937f.zip |
Changed validators to regexp validators
IntValidator limits to 32bit int (JavaScript limitation) and therefor
the input fields are limited in length.
Diffstat (limited to 'ethereal')
-rw-r--r-- | ethereal/assets/qml/newTransaction/_new_contract.qml | 6 | ||||
-rw-r--r-- | ethereal/assets/qml/newTransaction/_simple_send.qml | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ethereal/assets/qml/newTransaction/_new_contract.qml b/ethereal/assets/qml/newTransaction/_new_contract.qml index f8f3d53a0..e3c7229eb 100644 --- a/ethereal/assets/qml/newTransaction/_new_contract.qml +++ b/ethereal/assets/qml/newTransaction/_new_contract.qml @@ -61,7 +61,7 @@ Component { id: txValue width: 200 placeholderText: "Amount" - validator: IntValidator { } + validator: RegExpValidator { regExp: /\d*/ } onTextChanged: { contractFormReady() } @@ -69,7 +69,7 @@ Component { TextField { id: txGas width: 200 - validator: IntValidator { } + validator: RegExpValidator { regExp: /\d*/ } placeholderText: "Gas" onTextChanged: { contractFormReady() @@ -79,7 +79,7 @@ Component { id: txGasPrice width: 200 placeholderText: "Gas price" - validator: IntValidator { } + validator: RegExpValidator { regExp: /\d*/ } onTextChanged: { contractFormReady() } diff --git a/ethereal/assets/qml/newTransaction/_simple_send.qml b/ethereal/assets/qml/newTransaction/_simple_send.qml index 12420c15a..cd1ef55b6 100644 --- a/ethereal/assets/qml/newTransaction/_simple_send.qml +++ b/ethereal/assets/qml/newTransaction/_simple_send.qml @@ -56,9 +56,10 @@ Component { } TextField { id: txSimpleValue + width: 200 placeholderText: "Amount" anchors.rightMargin: 5 - validator: IntValidator { } + validator: RegExpValidator { regExp: /\d*/ } onTextChanged: { checkFormState() } } Button { |