summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextcontrol_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.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.h')
-rw-r--r--src/gui/text/qtextcontrol_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qtextcontrol_p.h b/src/gui/text/qtextcontrol_p.h
index 8399d50..2af442f 100644
--- a/src/gui/text/qtextcontrol_p.h
+++ b/src/gui/text/qtextcontrol_p.h
@@ -175,6 +175,9 @@ public:
void setCursorIsFocusIndicator(bool b);
bool cursorIsFocusIndicator() const;
+ void setDragEnabled(bool enabled);
+ bool isDragEnabled() const;
+
#ifndef QT_NO_PRINTER
void print(QPrinter *printer) const;
#endif