diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-06-26 14:38:12 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-06-28 14:05:40 +0200 |
commit | b8f588bea74aae0a890e1af18b936b0bfbf8c237 (patch) | |
tree | 36184f42ba4bf12387f46097960205f2bf58a505 /examples/widgets/widgets/imageviewer/main.cpp | |
parent | 19b0800555e7850682a6556c0569e1e2ea963c79 (diff) |
Move image viewer example to manual test
Pick-to: 6.5 6.6
Change-Id: I4b64033f1a075681ce5b918fdf2e018ad05a7869
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/widgets/widgets/imageviewer/main.cpp')
-rw-r--r-- | examples/widgets/widgets/imageviewer/main.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/examples/widgets/widgets/imageviewer/main.cpp b/examples/widgets/widgets/imageviewer/main.cpp deleted file mode 100644 index 013f7d8689..0000000000 --- a/examples/widgets/widgets/imageviewer/main.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -#include <QApplication> -#include <QCommandLineParser> - -#include "imageviewer.h" - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - QGuiApplication::setApplicationDisplayName(ImageViewer::tr("Image Viewer")); - QCommandLineParser commandLineParser; - commandLineParser.addHelpOption(); - commandLineParser.addPositionalArgument(ImageViewer::tr("[file]"), ImageViewer::tr("Image file to open.")); - commandLineParser.process(QCoreApplication::arguments()); - ImageViewer imageViewer; - if (!commandLineParser.positionalArguments().isEmpty() - && !imageViewer.loadFile(commandLineParser.positionalArguments().constFirst())) { - return -1; - } - imageViewer.show(); - return app.exec(); -} |