aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/texteditor
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-08-26 12:43:24 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-08-26 15:23:37 +0000
commitc3097c1688ad9eee91cbeade3b466a68a4889568 (patch)
tree4ca3524f824ceab151b292943d3138c96eeac511 /examples/quickcontrols2/texteditor
parent54480f3fb6312205170cff3a16d84d53a2da143f (diff)
texteditor: remove outdated todo-comments
The comments refer to the original code that was setting a declarative source property in the Component.onCompleted signal handler, but this does not really apply anymore now that we have an imperative method to load document contents. Change-Id: I9054cbc6ecec2c66d65251c49a5b1de2ad0623dc Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/quickcontrols2/texteditor')
-rw-r--r--examples/quickcontrols2/texteditor/qml/+touch/texteditor.qml2
-rw-r--r--examples/quickcontrols2/texteditor/qml/texteditor.qml2
2 files changed, 0 insertions, 4 deletions
diff --git a/examples/quickcontrols2/texteditor/qml/+touch/texteditor.qml b/examples/quickcontrols2/texteditor/qml/+touch/texteditor.qml
index a6c339fd..11f0f306 100644
--- a/examples/quickcontrols2/texteditor/qml/+touch/texteditor.qml
+++ b/examples/quickcontrols2/texteditor/qml/+touch/texteditor.qml
@@ -106,8 +106,6 @@ ApplicationWindow {
selectionStart: textArea.selectionStart
selectionEnd: textArea.selectionEnd
// textColor: TODO
- // TODO: if we don't do this, e.g. the bold button won't be checked
- // when it should be (the title is bold)
Component.onCompleted: document.load("qrc:/texteditor.html")
onLoaded: {
textArea.text = text
diff --git a/examples/quickcontrols2/texteditor/qml/texteditor.qml b/examples/quickcontrols2/texteditor/qml/texteditor.qml
index 6d01ec84..c84d30d5 100644
--- a/examples/quickcontrols2/texteditor/qml/texteditor.qml
+++ b/examples/quickcontrols2/texteditor/qml/texteditor.qml
@@ -363,8 +363,6 @@ ApplicationWindow {
selectionStart: textArea.selectionStart
selectionEnd: textArea.selectionEnd
textColor: colorDialog.color
- // TODO: if we don't do this, e.g. the bold button won't be checked
- // when it should be (the title is bold)
Component.onCompleted: document.load("qrc:/texteditor.html")
onLoaded: {
textArea.text = text