From de33a805de96681f98998179acd4bea61eae5d5a Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Wed, 7 Dec 2011 15:41:45 +0200 Subject: [PATCH] QtQuick TextEdit to set view property to QTextController Controller wants to know on some cases where it's attached to. Change-Id: I48df57ea1233a307f4d7424f0f944755604e3a6e Reviewed-by: Lars Knoll Reviewed-by: Joona Petrell --- src/quick/items/qquicktextedit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/quick/items/qquicktextedit.cpp b/src/quick/items/qquicktextedit.cpp index f1efbbe..91b0b0d 100644 --- a/src/quick/items/qquicktextedit.cpp +++ b/src/quick/items/qquicktextedit.cpp @@ -1631,6 +1631,7 @@ void QQuickTextEditPrivate::init() document = new QQuickTextDocumentWithImageResources(q); control = new QQuickTextControl(document, q); + control->setView(q); control->setIgnoreUnusedNavigationEvents(true); control->setTextInteractionFlags(Qt::LinksAccessibleByMouse | Qt::TextSelectableByKeyboard | Qt::TextEditable); control->setDragEnabled(false); -- 2.7.4