summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qcommonstyle.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-04-07 11:14:06 +0200
committerLars Knoll <lars.knoll@qt.io>2020-04-21 15:46:43 +0200
commitff0d02eb2f048730ccbf0cdf30af64c5c5552044 (patch)
treea650f2440af8e8a6529c49f093f1fb60eb087132 /src/widgets/styles/qcommonstyle.cpp
parent50916edd9d1707774c597abe1b7237e1a798fc53 (diff)
Remove QTextCodec dependency from QClipboard
QClipboard used QTextCodec to convert the war clipboard data to a QString. HTML is nowadays always encoded as utf8, and we were only supporting utf based encodings for other text. Add a qFromUtfEncoded() to our UTF helpers that auto detects utf16 and utf32 byte order marks, and assumes utf8 otherwise, to keep this compatible with what we have been doing in Qt 5. Change-Id: I5a9fccb67a88dff27cbbdecff9bd548d31aa1c6c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/widgets/styles/qcommonstyle.cpp')
0 files changed, 0 insertions, 0 deletions