2014-01-17 13:48:17 +01:00
|
|
|
/*
|
2020-08-13 21:08:54 +02:00
|
|
|
SPDX-FileCopyrightText: 2008 Aaron Seigo <aseigo@kde.org>
|
|
|
|
SPDX-FileCopyrightText: 2013 Sebastian Kügler <sebas@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2014-01-17 13:48:17 +01:00
|
|
|
|
|
|
|
#include <QScreen>
|
|
|
|
#include <plasma/theme.h>
|
2020-07-08 07:44:43 +02:00
|
|
|
#include <QCommandLineParser>
|
|
|
|
#include <QCommandLineOption>
|
2014-01-17 13:48:17 +01:00
|
|
|
|
|
|
|
#include <KLocalizedString>
|
|
|
|
|
|
|
|
#include "dpitest.h"
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
QCommandLineParser *parser = new QCommandLineParser;
|
|
|
|
Plasma::DPITest app(argc, argv, parser);
|
|
|
|
|
|
|
|
const QString description = i18n("DPI test app");
|
2017-12-02 15:12:40 +01:00
|
|
|
const QString version = QStringLiteral("2.0");
|
2014-01-17 13:48:17 +01:00
|
|
|
|
|
|
|
app.setApplicationVersion(version);
|
|
|
|
parser->addVersionOption();
|
|
|
|
parser->setApplicationDescription(description);
|
|
|
|
|
2016-02-29 00:08:05 +01:00
|
|
|
parser->addOption(QCommandLineOption(QStringList() << QStringLiteral("s") << QStringLiteral("show"), i18nc("Do not translate <name>", "Show icon sizes"), QStringLiteral("name")));
|
2014-01-17 13:48:17 +01:00
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|
|
|
|
|