From 53d3bc4f06eb8f4437b08c48ffff08d4ae793eac Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Tue, 4 Oct 2016 02:14:09 +0300 Subject: [PATCH] Receive page: display long address from the beginning in TextField --- components/LineEdit.qml | 1 + pages/Receive.qml | 5 +++++ 2 files changed, 6 insertions(+) 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: {