File indexing completed on 2024-04-28 08:21:12

0001 /*
0002     SPDX-FileCopyrightText: 2000-2008 Till Krech <till@snafu.de>
0003     SPDX-FileCopyrightText: 2009 Mathias Soeken <msoeken@tzi.de>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #include <QApplication>
0009 
0010 #include <KAboutData>
0011 #include <KLocalizedString>
0012 #include <QCommandLineParser>
0013 
0014 #include "klineal.h"
0015 
0016 #include "kruler_version.h"
0017 
0018 int main(int argc, char *argv[])
0019 {
0020     QApplication app(argc, argv);
0021 
0022     KAboutData aboutData(QStringLiteral("kruler"),
0023                          i18n("KDE Screen Ruler"),
0024                          QStringLiteral(KRULER_VERSION_STRING),
0025                          i18n("A screen ruler by KDE"),
0026                          KAboutLicense::GPL,
0027                          i18n("(c) 2000 - 2008, Till Krech\n(c) 2009, Mathias Soeken"));
0028     aboutData.addAuthor(i18n("Mathias Soeken"), i18n("Maintainer"), QStringLiteral("msoeken@tzi.de"));
0029     aboutData.addAuthor(i18n("Till Krech"), i18n("Former Maintainer and Developer"), QStringLiteral("till@snafu.de"));
0030     aboutData.addCredit(i18n("Gunnstein Lye"), i18n("Initial port to KDE 2"), QStringLiteral("gl@ez.no"));
0031     aboutData.setTranslator(i18nc("NAME OF TRANSLATORS", "Your names"), i18nc("EMAIL OF TRANSLATORS", "Your emails"));
0032     KAboutData::setApplicationData(aboutData);
0033 
0034     QCommandLineParser parser;
0035     aboutData.setupCommandLine(&parser);
0036     parser.process(app);
0037     aboutData.processCommandLine(&parser);
0038 
0039     KLineal ruler;
0040     ruler.show();
0041     return app.exec();
0042 }