diff options
author | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-02-02 13:13:05 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-02-02 13:13:05 +0100 |
commit | ab47de291a0b0111d0ef956dc4c4599e2066602d (patch) | |
tree | 4a118797c0cc6834624262938125f742d3744137 /src/qtdiag/main.cpp | |
parent | 0091dac1623e69befb549372c417c5aec97ceae1 (diff) | |
parent | dd1d3429fd5518de13f01d89308f2ee2de42540f (diff) |
Merge 5.6 into 5.6.0
Change-Id: I2e48d2627ada8184716916070c2d3cec200e2cb2
Diffstat (limited to 'src/qtdiag/main.cpp')
-rw-r--r-- | src/qtdiag/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qtdiag/main.cpp b/src/qtdiag/main.cpp index 6bc42bc2c..7e304d401 100644 --- a/src/qtdiag/main.cpp +++ b/src/qtdiag/main.cpp @@ -53,14 +53,18 @@ int main(int argc, char **argv) QCommandLineParser commandLineParser; const QCommandLineOption noGlOption(QStringLiteral("no-gl"), QStringLiteral("Do not output GL information")); const QCommandLineOption glExtensionOption(QStringLiteral("gl-extensions"), QStringLiteral("List GL extensions")); + const QCommandLineOption fontOption(QStringLiteral("fonts"), QStringLiteral("Output list of fonts")); commandLineParser.setApplicationDescription(QStringLiteral("Prints diagnostic output about the Qt library.")); commandLineParser.addOption(noGlOption); commandLineParser.addOption(glExtensionOption); + commandLineParser.addOption(fontOption); commandLineParser.addHelpOption(); commandLineParser.process(app); unsigned flags = commandLineParser.isSet(noGlOption) ? 0u : unsigned(QtDiagGl); if (commandLineParser.isSet(glExtensionOption)) flags |= QtDiagGlExtensions; + if (commandLineParser.isSet(fontOption)) + flags |= QtDiagFonts; std::wcout << qtDiag(flags).toStdWString(); return 0; |