summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-07-16 15:17:31 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-07-20 16:06:28 +0200
commitf12132ff23128435d80af9d812e2408cf191d1e8 (patch)
tree5fc415db66384de264e036f580f5400ec48d0216 /tests/auto/corelib
parent555be46527c7e8035410dd38604629272ac83af6 (diff)
QCommandLineOption: purge deprecated API
Since 5.8: setHidden(), isHidden() Part of the QCommandLineParser test also used setHidden(). Change-Id: I05a1c63ff3beb1167ed75632c1b71d7fff17f09e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib')
-rw-r--r--tests/auto/corelib/tools/qcommandlineparser/testhelper/qcommandlineparser_test_helper.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/auto/corelib/tools/qcommandlineparser/testhelper/qcommandlineparser_test_helper.cpp b/tests/auto/corelib/tools/qcommandlineparser/testhelper/qcommandlineparser_test_helper.cpp
index 88dfdeccab..dd4235ca40 100644
--- a/tests/auto/corelib/tools/qcommandlineparser/testhelper/qcommandlineparser_test_helper.cpp
+++ b/tests/auto/corelib/tools/qcommandlineparser/testhelper/qcommandlineparser_test_helper.cpp
@@ -74,12 +74,6 @@ int main(int argc, char *argv[])
hiddenOption.setDescription(QStringLiteral("THIS SHOULD NEVER APPEAR"));
hiddenOption.setFlags(QCommandLineOption::HiddenFromHelp);
parser.addOption(hiddenOption);
-#if QT_DEPRECATED_SINCE(5, 8)
- QCommandLineOption hiddenOption2(QStringList() << QStringLiteral("hidden2"));
- hiddenOption2.setDescription(QStringLiteral("NEITHER SHOULD THIS"));
- hiddenOption2.setHidden(true);
- parser.addOption(hiddenOption2);
-#endif
// This program supports different options depending on the "command" (first argument).
// Call parse() to find out the positional arguments.