summaryrefslogtreecommitdiffstats
path: root/startupscreen/GuideView.qml
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2020-11-18 12:01:35 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2020-11-20 07:46:15 +0000
commitccf7a142dbacd19657cea11a216784f1a9c7f733 (patch)
tree9e35c9b3034892210329ba96014f56e196d48668 /startupscreen/GuideView.qml
parentbb9fdbf7401e552bac36132a34512fe3a075ef41 (diff)
startupscreen: use TextArea
Use TextArea now that QTBUG-88169 has been fixed and touch work correctly. Change-Id: Ib35cca0448407dd6c7a4c1c096f4340f965db8e2 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'startupscreen/GuideView.qml')
-rw-r--r--startupscreen/GuideView.qml25
1 files changed, 2 insertions, 23 deletions
diff --git a/startupscreen/GuideView.qml b/startupscreen/GuideView.qml
index 0170e1b..fb6dd2e 100644
--- a/startupscreen/GuideView.qml
+++ b/startupscreen/GuideView.qml
@@ -65,35 +65,14 @@ Item {
contentHeight: guide.height
flickableDirection: Flickable.VerticalFlick
- // dummy component to access current style
TextArea {
- id: textarea
- visible: false
- readOnly: true
- }
-
- // Get background from TextArea
- Rectangle {
- anchors.fill: parent
- border.width: textarea.background.border.width
- border.color: textarea.background.border.color
- color: textarea.background.color
- }
-
- Text {
id: guide
width: root.width
text: SettingsManager.guideText
textFormat: Text.RichText
wrapMode: Text.WordWrap
-
- // Get style from TextArea
- font: textarea.font
- color: textarea.color
- padding: textarea.padding
- topPadding: textarea.topPadding
- rightPadding: textarea.rightPadding
- bottomPadding: textarea.bottomPadding
+ readOnly: true
+ focus: root.visible
}
}