summaryrefslogtreecommitdiffstats
path: root/examples/widgets/dialogs/classwizard/main.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-05-16 15:32:28 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-05-16 18:33:18 +0200
commitb7c15f7f24c1f0afcea87b31d3b4e096149c9e7d (patch)
treee0d96c8eb2239df3d0ab1b7784b3a7dfbb94fb84 /examples/widgets/dialogs/classwizard/main.cpp
parent11da92ba94570e5eec01597fe09f0a9a48acc677 (diff)
Remove the "classwizard" example
It adds nothing new to what the trivial and license wizard examples show, other than a bunch of somewhat messy and outdated code to generate C++ code files based on the input. The example is referenced in a few parts of the documentation, but there are equivalent snippets in the trivial and license wizard examples, so point at those instead, and add some relevant API usage where needed. Pick-to: 6.5 Change-Id: If1ff57e775bad28920d9e019aeccae69d1f4d127 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'examples/widgets/dialogs/classwizard/main.cpp')
-rw-r--r--examples/widgets/dialogs/classwizard/main.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/examples/widgets/dialogs/classwizard/main.cpp b/examples/widgets/dialogs/classwizard/main.cpp
deleted file mode 100644
index f31082b392f..00000000000
--- a/examples/widgets/dialogs/classwizard/main.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#include <QApplication>
-#include <QTranslator>
-#include <QLocale>
-#include <QLibraryInfo>
-
-#include "classwizard.h"
-
-int main(int argc, char *argv[])
-{
- Q_INIT_RESOURCE(classwizard);
-
- QApplication app(argc, argv);
-
-#ifndef QT_NO_TRANSLATION
- QString translatorFileName = QLatin1String("qtbase_");
- translatorFileName += QLocale::system().name();
- QTranslator *translator = new QTranslator(&app);
- if (translator->load(translatorFileName, QLibraryInfo::path(QLibraryInfo::TranslationsPath)))
- app.installTranslator(translator);
-#endif
-
- ClassWizard wizard;
- wizard.show();
- return app.exec();
-}