11int main(
int argc,
char **argv)
13 QApplication app(argc, argv);
14 app.setOrganizationName(QStringLiteral(
"QtProject"));
15 app.setApplicationName(QStringLiteral(
"Qt Distance Field Generator"));
16 app.setApplicationVersion(QStringLiteral(QT_VERSION_STR));
18 QCommandLineParser parser;
19 parser.setApplicationDescription(
20 QCoreApplication::translate(
"main",
21 "Allows to prepare a font cache for Qt applications."));
22 parser.addHelpOption();
23 parser.addVersionOption();
24 parser.addPositionalArgument(QLatin1String(
"file"),
25 QCoreApplication::translate(
"main",
26 "Font file (*.ttf, *.otf)"));
30 if (!parser.positionalArguments().isEmpty())
31 mainWindow.open(parser.positionalArguments().constFirst());