diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-04-28 17:01:11 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-05-14 07:50:13 +0200 |
commit | 33bb695a2895fb7199b256a4fd76923c32a8587a (patch) | |
tree | 78bcb9e1611433be28bd788040db7972017976b8 /src/tools/uic | |
parent | 8835c64f795b641619b852c2055605afd9d16442 (diff) |
Start porting QTextStream away from QTextCodec
As a first step add setEncoding/encoding() methods that use the
QStringConverter::Encoding enum, and port all uses of setCodec()/
codec() over to the new API.
Internally QTextStream still uses QTextCodec, this will be ported
over to QStringConverter in a follow-up change.
Change-Id: Icd764cf47b449b57f4ebd010c2dad89e6717d6c0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/uic')
-rw-r--r-- | src/tools/uic/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/uic/main.cpp b/src/tools/uic/main.cpp index 81492bbf45..8327dd5829 100644 --- a/src/tools/uic/main.cpp +++ b/src/tools/uic/main.cpp @@ -161,9 +161,7 @@ int runUic(int argc, char *argv[]) return 1; } out = new QTextStream(&f); -#if QT_CONFIG(textcodec) - out->setCodec(QTextCodec::codecForName("UTF-8")); -#endif + out->setEncoding(QStringConverter::Utf8); } bool rtn = driver.uic(inputFile, out); |