diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-01-10 08:11:19 (GMT) |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-01-11 00:34:50 (GMT) |
commit | 7d43a31902ca6d2132004c45db313194c9669bb6 (patch) | |
tree | 4f9528033ad7835cde33636adea1aacdbd0fd862 /src/declarative/graphicsitems/qdeclarativetextedit.cpp | |
parent | 17872d698be857d93b4d613f6423800308614684 (diff) | |
download | Qt-7d43a31902ca6d2132004c45db313194c9669bb6.zip Qt-7d43a31902ca6d2132004c45db313194c9669bb6.tar.gz Qt-7d43a31902ca6d2132004c45db313194c9669bb6.tar.bz2 |
Disable dragging text in TextEdit.
Add a dragEnabled property to QTextControl so text dragging can
optionally be disabled.
Task-number: QTBUG-16248
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativetextedit.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetextedit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextedit.cpp b/src/declarative/graphicsitems/qdeclarativetextedit.cpp index 7ea3dec..c1c7a0c 100644 --- a/src/declarative/graphicsitems/qdeclarativetextedit.cpp +++ b/src/declarative/graphicsitems/qdeclarativetextedit.cpp @@ -1342,6 +1342,7 @@ void QDeclarativeTextEditPrivate::init() control = new QTextControl(q); control->setIgnoreUnusedNavigationEvents(true); control->setTextInteractionFlags(control->textInteractionFlags() | Qt::LinksAccessibleByMouse); + control->setDragEnabled(false); // QTextControl follows the default text color // defined by the platform, declarative text |