We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dcb637 commit 728b4b6Copy full SHA for 728b4b6
src/CommandLineParser.cpp
@@ -327,7 +327,11 @@ CommandLineParser::~CommandLineParser()
327
328
void CommandLineParser::usage(const QString &name, const QString &argumentDescription)
329
{
330
+#if QT_VERSION >= 0x060000
331
+ QTextStream cout(stdout, QIODeviceBase::WriteOnly);
332
+#else
333
QTextStream cout(stdout, QIODevice::WriteOnly);
334
+#endif
335
cout << "Usage: " << d->argumentStrings[0];
336
if (! name.isEmpty())
337
cout << " " << name;
0 commit comments