From 6029f813f71170596831e823e4bc5cd6f43cc5f1 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Fri, 16 Aug 2019 12:04:52 -0400 Subject: [PATCH] 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 --- src/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application.cpp b/src/Application.cpp index 8732d105..1380971f 100644 --- a/src/Application.cpp +++ b/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); }