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 18:11:19 +1000
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-01-11 10:34:50 +1000
commit7d43a31902ca6d2132004c45db313194c9669bb6 (patch)
tree4f9528033ad7835cde33636adea1aacdbd0fd862 /src/gui/text/qtextcontrol_p.h
parent17872d698be857d93b4d613f6423800308614684 (diff)
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 8399d5096c..2af442f926 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