Fix documentation path
[kdepim.git] / grantleeeditor / contactprintthemeeditor / main.cpp
blob823868a445cffeb8c3a3411943318f212886dfed
1 /*
2 Copyright (C) 2015-2016 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #include "grantleeeditor-version.h"
21 #include "themeeditormainwindow.h"
22 #include <qapplication.h>
23 #include <kaboutdata.h>
24 #include <KDBusService>
25 #include <KLocalizedString>
26 #include <QCommandLineParser>
27 #include <QIcon>
28 #include <KCrash>
29 int main(int argc, char **argv)
31 QApplication app(argc, argv);
32 app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
33 app.setAttribute(Qt::AA_EnableHighDpiScaling);
34 KLocalizedString::setApplicationDomain("contactprintthemeeditor");
35 KAboutData aboutData(QStringLiteral("contactprintthemeeditor"),
36 i18n("Contact Print Theme Editor"),
37 QStringLiteral(KDEPIM_VERSION),
38 i18n("Contact Print Theme Editor"),
39 KAboutLicense::GPL_V2,
40 i18n("Copyright © 2015-2016 contactprintthemeeditor authors"));
41 aboutData.addAuthor(i18n("Laurent Montel"), i18n("Maintainer"), QStringLiteral("montel@kde.org"));
42 QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kaddressbook")));
43 aboutData.setOrganizationDomain(QByteArray("kde.org"));
44 aboutData.setProductName(QByteArray("contactprintthemeeditor"));
46 KAboutData::setApplicationData(aboutData);
47 KCrash::initialize();
49 QCommandLineParser parser;
50 parser.addVersionOption();
51 parser.addHelpOption();
52 aboutData.setupCommandLine(&parser);
54 parser.process(app);
55 aboutData.processCommandLine(&parser);
57 KDBusService service;
59 ThemeEditorMainWindow *mw = new ThemeEditorMainWindow;
60 mw->show();
61 const int ret = app.exec();
62 delete mw;
63 return ret;