summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextcontrol_p_p.h
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-01-10 08:11:19 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-01-11 00:34:50 (GMT)
commit7d43a31902ca6d2132004c45db313194c9669bb6 (patch)
tree4f9528033ad7835cde33636adea1aacdbd0fd862 /src/gui/text/qtextcontrol_p_p.h
parent17872d698be857d93b4d613f6423800308614684 (diff)
downloadQt-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/gui/text/qtextcontrol_p_p.h')
-rw-r--r--src/gui/text/qtextcontrol_p_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/text/qtextcontrol_p_p.h b/src/gui/text/qtextcontrol_p_p.h
index c103103..29c04a7 100644
--- a/src/gui/text/qtextcontrol_p_p.h
+++ b/src/gui/text/qtextcontrol_p_p.h
@@ -174,6 +174,8 @@ public:
QBasicTimer trippleClickTimer;
QPointF trippleClickPoint;
+ bool dragEnabled;
+
bool mousePressed;
bool mightStartDrag;