aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/LineEdit.qml1
-rw-r--r--pages/Receive.qml5
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: {