From e751dfc79377fc3f528c80ff0b30ef7387468f77 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Thu, 29 Dec 2016 21:56:43 +0100 Subject: [PATCH] Usability tweaks --- QtClient/JoplinQtClient/EditableListItem.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/QtClient/JoplinQtClient/EditableListItem.qml b/QtClient/JoplinQtClient/EditableListItem.qml index 94cb78534..e457186a7 100755 --- a/QtClient/JoplinQtClient/EditableListItem.qml +++ b/QtClient/JoplinQtClient/EditableListItem.qml @@ -5,10 +5,12 @@ Item { id: root width: parent.width height: 25 + Text { id: label text: display anchors.fill: parent + verticalAlignment: Text.AlignVCenter MouseArea { anchors.fill: parent onClicked: { @@ -18,10 +20,12 @@ Item { label.visible = false textField.visible = true textField.focus = true - console.info("Editing ", index) + textField.selectAll() + textField.text = display } } } + TextField { id: textField text: display @@ -29,11 +33,7 @@ Item { width: parent.width height: parent.height onAccepted: { - console.info(root.ListView.view.model); - console.info("Done ", index) root.ListView.view.model.setData(index, text) - //root.ListView.view.model.setDataInt(index, "trest") - //root.ListView.view.currentItem = "test" } onEditingFinished: { label.visible = true