2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QTranslator>
|
|
|
|
#include <QLocale>
|
|
|
|
#include <QLibraryInfo>
|
|
|
|
|
|
|
|
#include "classwizard.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
|
2012-12-05 13:40:38 +00:00
|
|
|
#ifndef QT_NO_TRANSLATION
|
2019-09-16 13:10:20 +00:00
|
|
|
QString translatorFileName = QLatin1String("qtbase_");
|
2011-04-27 10:05:43 +00:00
|
|
|
translatorFileName += QLocale::system().name();
|
|
|
|
QTranslator *translator = new QTranslator(&app);
|
2020-09-04 07:45:26 +00:00
|
|
|
if (translator->load(translatorFileName, QLibraryInfo::path(QLibraryInfo::TranslationsPath)))
|
2011-04-27 10:05:43 +00:00
|
|
|
app.installTranslator(translator);
|
2012-12-05 13:40:38 +00:00
|
|
|
#endif
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
ClassWizard wizard;
|
|
|
|
wizard.show();
|
|
|
|
return app.exec();
|
|
|
|
}
|