diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-10-04 02:14:09 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-10-10 00:15:17 +0300 |
| commit | 53d3bc4f06eb8f4437b08c48ffff08d4ae793eac (patch) | |
| tree | c7f85304f49119573dccb88d58a05b2e4ec5bf8a | |
| parent | 5814c19962e713782ebf9c0dcb218058f697ab36 (diff) | |
| download | monzero-gui-53d3bc4f06eb8f4437b08c48ffff08d4ae793eac.tar.gz monzero-gui-53d3bc4f06eb8f4437b08c48ffff08d4ae793eac.tar.xz monzero-gui-53d3bc4f06eb8f4437b08c48ffff08d4ae793eac.zip | |
Receive page: display long address from the beginning in TextField
| -rw-r--r-- | components/LineEdit.qml | 1 | ||||
| -rw-r--r-- | pages/Receive.qml | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/components/LineEdit.qml b/components/LineEdit.qml index 296c0c98..2ebc6e0c 100644 --- a/components/LineEdit.qml +++ b/components/LineEdit.qml @@ -33,6 +33,7 @@ Item { property alias text: input.text property alias validator: input.validator property alias readOnly : input.readOnly + property alias cursorPosition: input.cursorPosition property int fontSize: 18 diff --git a/pages/Receive.qml b/pages/Receive.qml index 18486d34..1345af99 100644 --- a/pages/Receive.qml +++ b/pages/Receive.qml @@ -86,6 +86,8 @@ Rectangle { readOnly: true width: mainLayout.editWidth Layout.fillWidth: true + onTextChanged: cursorPosition = 0 + IconButton { imageSource: "../images/copyToClipboard.png" onClicked: { @@ -115,6 +117,9 @@ Rectangle { readOnly: true width: mainLayout.editWidth Layout.fillWidth: true + + onTextChanged: cursorPosition = 0 + IconButton { imageSource: "../images/copyToClipboard.png" onClicked: { |
