summaryrefslogtreecommitdiffstats
path: root/framework/qml/TextEditor.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-21 05:48:53 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-21 05:48:53 +0200
commitcd5fc3ea02bea45dc81dd33d555cf9d1265f9d3a (patch)
tree35ae52c9f34e60f1a8ef44a3a85e4272b03c20ca /framework/qml/TextEditor.qml
parent4ec6700476de731ca1f3ccd40615d73481ac253b (diff)
downloadkube-cd5fc3ea02bea45dc81dd33d555cf9d1265f9d3a.tar.gz
kube-cd5fc3ea02bea45dc81dd33d555cf9d1265f9d3a.zip
Editor focus
Diffstat (limited to 'framework/qml/TextEditor.qml')
-rw-r--r--framework/qml/TextEditor.qml26
1 files changed, 14 insertions, 12 deletions
diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml
index d80bebb9..97aa56d2 100644
--- a/framework/qml/TextEditor.qml
+++ b/framework/qml/TextEditor.qml
@@ -22,21 +22,23 @@ import QtQuick.Controls 2.2
22 22
23import org.kube.framework 1.0 as Kube 23import org.kube.framework 1.0 as Kube
24 24
25Kube.ScrollHelper { 25FocusScope {
26 id: scrollHelper
27 property alias text: edit.text 26 property alias text: edit.text
28 flickable: root 27 Kube.ScrollHelper {
29 Flickable {
30 id: root
31 anchors.fill: parent 28 anchors.fill: parent
32 ScrollBar.vertical: ScrollBar {} 29 flickable: flickableItem
33 30 Flickable {
34 Kube.TextArea { 31 id: flickableItem
35 id: edit
36 anchors.fill: parent 32 anchors.fill: parent
37 selectByMouse: true 33 ScrollBar.vertical: ScrollBar {}
38 wrapMode: TextEdit.Wrap 34
35 Kube.TextArea {
36 id: edit
37 anchors.fill: parent
38 selectByMouse: true
39 wrapMode: TextEdit.Wrap
40 }
41 TextArea.flickable: edit
39 } 42 }
40 TextArea.flickable: edit
41 } 43 }
42} 44}