diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-12-15 13:18:27 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-15 07:03:53 +0100 |
commit | c00cab34e5ee940f9559679025ea660a62ee4134 (patch) | |
tree | e95852daaa12b6b2689b6c06fb9467a9d78924e9 /src/quick/items/qquicktextedit.cpp | |
parent | 7e2c152089e5f54b254d8dae7cbfe0f3bbd68293 (diff) |
Remove unused code from QQuickTextControl.
QTextControl included a lot of functionality that was unused by
TextEdit. Anything that is unused and therefore untested should
go.
Task-number: QTBUG-22627
Change-Id: Ie68b279cb8618bec0af76287c7c4db34d0642a0a
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/quick/items/qquicktextedit.cpp')
-rw-r--r-- | src/quick/items/qquicktextedit.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/quick/items/qquicktextedit.cpp b/src/quick/items/qquicktextedit.cpp index f0679c4861..4b3dc6648b 100644 --- a/src/quick/items/qquicktextedit.cpp +++ b/src/quick/items/qquicktextedit.cpp @@ -1632,18 +1632,7 @@ void QQuickTextEditPrivate::init() control = new QQuickTextControl(document, q); control->setView(q); - control->setIgnoreUnusedNavigationEvents(true); control->setTextInteractionFlags(Qt::LinksAccessibleByMouse | Qt::TextSelectableByKeyboard | Qt::TextEditable); - control->setDragEnabled(false); - - // By default, QQuickTextControl will issue both a updateCursorRequest() and an updateRequest() - // when the cursor needs to be repainted. We need the signals to be separate to be able to - // distinguish the cursor updates so that we can avoid updating the whole subtree when the - // cursor blinks. - if (!QObject::disconnect(control, SIGNAL(updateCursorRequest(QRectF)), - control, SIGNAL(updateRequest(QRectF)))) { - qWarning("QQuickTextEditPrivate::init: Failed to disconnect updateCursorRequest and updateRequest"); - } // QQuickTextControl follows the default text color // defined by the platform, declarative text |