diff options
author | Leander Beernaert <[email protected]> | 2019-11-11 14:03:37 +0100 |
---|---|---|
committer | Leander Beernaert <[email protected]> | 2019-11-11 14:08:52 +0100 |
commit | ce187c4f0e57d5053583613aeedbc89024bae240 (patch) | |
tree | b634e00fb919463a4264d522bbd3738f81e001c0 /tests/manual/diaglib/textdump.cpp | |
parent | 937e014e6382c172d00ef2a42dcc8913206075f8 (diff) |
Fix compile errors related to missing Qt:: namespace
Change-Id: I092a26ef38b08c52d84adb027a1b1bdee8cc7f6b
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'tests/manual/diaglib/textdump.cpp')
-rw-r--r-- | tests/manual/diaglib/textdump.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/manual/diaglib/textdump.cpp b/tests/manual/diaglib/textdump.cpp index 383ec4edb0f..33455a2a567 100644 --- a/tests/manual/diaglib/textdump.cpp +++ b/tests/manual/diaglib/textdump.cpp @@ -408,8 +408,8 @@ struct FormattingContext static void formatCharacter(QTextStream &str, const QChar &qc, FormattingContext &context) { const ushort unicode = qc.unicode(); - str << "U+" << qSetFieldWidth(4) << qSetPadChar('0') << uppercasedigits << hex << unicode - << dec << qSetFieldWidth(0) << ' '; + str << "U+" << qSetFieldWidth(4) << qSetPadChar('0') << Qt::uppercasedigits << Qt::hex + << unicode << Qt::dec << qSetFieldWidth(0) << ' '; const EnumLookup *specialChar = enumLookup(unicode, specialCharactersEnumLookup, sizeof(specialCharactersEnumLookup) / sizeof(EnumLookup)); if (specialChar) @@ -477,7 +477,7 @@ QString dumpTextAsCode(const QString &text) { QString result; QTextStream str(&result); - str << " QString result;\n" << hex << showbase; + str << " QString result;\n" << Qt::hex << Qt::showbase; for (QChar c : text) str << " result += QChar(" << c.unicode() << ");\n"; str << '\n'; |