mirror of https://github.com/qt/qtbase.git
Android: Do not enable text selection in QTextEdits by default.
Text selection does not work correctly and is currently causing selected text to be randomly copied, pasted or deleted. Task-id: QTBUG-34616 Change-Id: I98678b7575034325dd8a4fa181ee4cb182783a3b Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
parent
208acff3fc
commit
a03a69efb9
|
@ -115,7 +115,11 @@ static QTextLine currentTextLine(const QTextCursor &cursor)
|
||||||
|
|
||||||
QWidgetTextControlPrivate::QWidgetTextControlPrivate()
|
QWidgetTextControlPrivate::QWidgetTextControlPrivate()
|
||||||
: doc(0), cursorOn(false), cursorIsFocusIndicator(false),
|
: doc(0), cursorOn(false), cursorIsFocusIndicator(false),
|
||||||
|
#ifndef Q_OS_ANDROID
|
||||||
interactionFlags(Qt::TextEditorInteraction),
|
interactionFlags(Qt::TextEditorInteraction),
|
||||||
|
#else
|
||||||
|
interactionFlags(Qt::TextEditable),
|
||||||
|
#endif
|
||||||
dragEnabled(true),
|
dragEnabled(true),
|
||||||
#ifndef QT_NO_DRAGANDDROP
|
#ifndef QT_NO_DRAGANDDROP
|
||||||
mousePressed(false), mightStartDrag(false),
|
mousePressed(false), mightStartDrag(false),
|
||||||
|
|
Loading…
Reference in New Issue