File indexing completed on 2024-11-10 04:41:10
0001 /* 0002 SPDX-FileCopyrightText: 2010 Stephen Kelly <steveire@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include <KAboutData> 0008 #include <KLocalizedString> 0009 #include <QApplication> 0010 #include <QCommandLineParser> 0011 0012 #include "mainwindow.h" 0013 0014 int main(int argc, char *argv[]) 0015 { 0016 QApplication app(argc, argv); 0017 0018 KAboutData aboutData(QStringLiteral("etm_test_app"), 0019 i18n("ETM Test application"), 0020 QStringLiteral("0.99"), 0021 i18n("Test app for EntityTreeModel"), 0022 KAboutLicense::GPL, 0023 QStringLiteral("https://community.kde.org/KDE_PIM/Akonadi/")); 0024 aboutData.addAuthor(i18n("Stephen Kelly"), i18n("Author"), QStringLiteral("steveire@gmail.com")); 0025 KAboutData::setApplicationData(aboutData); 0026 0027 app.setWindowIcon(QIcon::fromTheme(QStringLiteral("akonadi"))); 0028 QCommandLineParser parser; 0029 aboutData.setupCommandLine(&parser); 0030 parser.process(app); 0031 aboutData.processCommandLine(&parser); 0032 0033 MainWindow mw; 0034 mw.show(); 0035 0036 return app.exec(); 0037 }