File indexing completed on 2024-11-24 04:59:36

0001 /*
0002     SPDX-FileCopyrightText: 2008 Aaron Seigo <aseigo@kde.org>
0003     SPDX-FileCopyrightText: 2013 Sebastian Kügler <sebas@kde.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #include <QCommandLineOption>
0009 #include <QCommandLineParser>
0010 #include <QScreen>
0011 #include <plasma/theme.h>
0012 
0013 #include <KLocalizedString>
0014 
0015 #include "dpitest.h"
0016 
0017 int main(int argc, char **argv)
0018 {
0019     QCommandLineParser *parser = new QCommandLineParser;
0020     Plasma::DPITest app(argc, argv, parser);
0021 
0022     const QString description = i18n("DPI test app");
0023     const QString version = QStringLiteral("2.0");
0024 
0025     app.setApplicationVersion(version);
0026     parser->addVersionOption();
0027     parser->setApplicationDescription(description);
0028 
0029     parser->addOption(QCommandLineOption(QStringList() << QStringLiteral("s") << QStringLiteral("show"),
0030                                          i18nc("Do not translate <name>", "Show icon sizes"),
0031                                          QStringLiteral("name")));
0032 
0033     return app.exec();
0034 }