File indexing completed on 2024-05-12 05:13:31
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "themeeditormainwindow.h" 0007 0008 #include "grantleeeditor-version.h" 0009 0010 #include <KAboutData> 0011 #include <KCrash> 0012 #include <KDBusService> 0013 #include <KLocalizedString> 0014 #include <QApplication> 0015 #include <QCommandLineParser> 0016 0017 int main(int argc, char **argv) 0018 { 0019 QApplication app(argc, argv); 0020 app.setDesktopFileName(QStringLiteral("org.kde.headerthemeeditor")); 0021 KCrash::initialize(); 0022 KLocalizedString::setApplicationDomain(QByteArrayLiteral("headerthemeeditor")); 0023 KAboutData aboutData(QStringLiteral("headerthemeeditor"), 0024 i18n("Header Theme Editor"), 0025 QStringLiteral(GRANTLEEEDITOR_VERSION), 0026 i18n("Messageviewer Header Theme Editor"), 0027 KAboutLicense::GPL_V2, 0028 i18n("Copyright © 2013-%1 headerthemeeditor authors", QStringLiteral("2023"))); 0029 aboutData.addAuthor(i18n("Laurent Montel"), i18n("Maintainer"), QStringLiteral("montel@kde.org")); 0030 QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail"))); 0031 aboutData.setProductName(QByteArray("headerthemeeditor")); 0032 0033 KAboutData::setApplicationData(aboutData); 0034 0035 QCommandLineParser parser; 0036 aboutData.setupCommandLine(&parser); 0037 0038 parser.process(app); 0039 aboutData.processCommandLine(&parser); 0040 0041 KDBusService service; 0042 0043 auto mw = new ThemeEditorMainWindow(); 0044 mw->show(); 0045 const int ret = app.exec(); 0046 return ret; 0047 }