File indexing completed on 2025-01-26 03:28:29
0001 /* 0002 SPDX-FileCopyrightText: 2012 Frederik Gladhorn <gladhorn@kde.org> 0003 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0004 0005 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 #include <KAboutData> 0009 #include <KCrash> 0010 #include <KDBusService> 0011 #include <KLocalizedString> 0012 #include <QApplication> 0013 #include <QCommandLineParser> 0014 0015 #include "inspector-version.h" 0016 #include "mainwindow.h" 0017 0018 int main(int argc, char **argv) 0019 { 0020 QApplication app(argc, argv); 0021 KCrash::initialize(); 0022 0023 KLocalizedString::setApplicationDomain(QByteArrayLiteral("accessibilityinspector")); 0024 0025 KAboutData about(QStringLiteral("accessibilityinspector"), 0026 i18n("Accessibility Inspector"), 0027 QStringLiteral(INSPECTOR_VERSION_STRING), 0028 i18n("Accessibility inspector"), 0029 KAboutLicense::LGPL_V2, 0030 i18n("© 2021-2023 Carl Schwan, 2021-2024 KDE Community")); 0031 0032 about.addAuthor(i18n("Frederik Gladhorn"), i18n("Original author"), QStringLiteral("gladhorn@kde.org")); 0033 0034 about.addCredit(i18n("Laurent Montel"), i18n("Maintainer"), QStringLiteral("montel@kde.org")); 0035 about.addAuthor(i18n("Carl Schwan"), 0036 i18n("Maintainer"), 0037 QStringLiteral("carl@carlschwan.eu"), 0038 QStringLiteral("https://carlschwan.eu"), 0039 QUrl(QStringLiteral("https://carlschwan.eu/avatar.png"))); 0040 0041 KAboutData::setApplicationData(about); 0042 QGuiApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("org.kde.accessibilityinspector"))); 0043 0044 QCommandLineParser parser; 0045 about.setupCommandLine(&parser); 0046 parser.process(app); 0047 0048 KDBusService service(KDBusService::Unique); 0049 0050 auto window = new MainWindow; 0051 window->show(); 0052 0053 return app.exec(); 0054 }