Use QCommandLineOption::HiddenFromHelp instead of deprecated API

Summary: setHidden has been deprecated since Qt 5.8.

Reviewers: #konsole

Subscribers: konsole-devel

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D23143
wilder-portage
Frederik Gladhorn 7 years ago committed by Kurt Hindenburg
parent 5f141c16ab
commit 6029f813f7
  1. 2
      src/Application.cpp

@ -136,7 +136,7 @@ void Application::populateCommandLineParser(QCommandLineParser *parser)
auto titleOption = QCommandLineOption({ QStringLiteral("T") },
QStringLiteral("Debian policy compatibility, not used"),
QStringLiteral("value"));
titleOption.setHidden(true);
titleOption.setFlags(QCommandLineOption::HiddenFromHelp);
parser->addOption(titleOption);
}

Loading…
Cancel
Save