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:
Christian Strømme 2014-02-10 01:56:40 +01:00 committed by The Qt Project
parent 208acff3fc
commit a03a69efb9

View File

@ -115,7 +115,11 @@ static QTextLine currentTextLine(const QTextCursor &cursor)
QWidgetTextControlPrivate::QWidgetTextControlPrivate()
: doc(0), cursorOn(false), cursorIsFocusIndicator(false),
#ifndef Q_OS_ANDROID
interactionFlags(Qt::TextEditorInteraction),
#else
interactionFlags(Qt::TextEditable),
#endif
dragEnabled(true),
#ifndef QT_NO_DRAGANDDROP
mousePressed(false), mightStartDrag(false),