Revert "Keep original text for text/plain mime data"
This also affects things like line breaks, effectively preventing the paste of copied text to non-Qt applications. This reverts commit 17eb0f2d8a84eb54e6e4fbfa981ca3bae8c7e919. [ChangeLog][QtGui][Drag&Drop] The fix to preserve special characters like the text/plain part of the clipboard when copied from a QTextEdit or QLineEdit had to be reverted (QTBUG-107004). Fixes: QTBUG-107004 Change-Id: Ia226f38f31a368c381910e1d43b6422395a5744f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit a51e7876b8adee2d6ddb721de9b4525cd1025ad7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
05ca943de2
commit
1cb57091ac
@ -3477,7 +3477,7 @@ void QTextEditMimeData::setup() const
|
||||
that->setData("application/vnd.oasis.opendocument.text"_L1, buffer.data());
|
||||
}
|
||||
#endif
|
||||
that->setText(fragment.toRawText());
|
||||
that->setText(fragment.toPlainText());
|
||||
fragment = QTextDocumentFragment();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user