File indexing completed on 2024-04-21 05:51:37
0001 /* 0002 * SPDX-FileCopyrightText: 2002-2003 Jesper K. Pedersen <blackie@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-only 0005 **/ 0006 0007 #include <KAboutData> 0008 #include <KCrash> 0009 0010 #include <KLocalizedString> 0011 #include <QApplication> 0012 #include <QCommandLineParser> 0013 #include <QHBoxLayout> 0014 #include <QPushButton> 0015 #include <QVBoxLayout> 0016 0017 #include "kregexpeditorwindow.h" 0018 0019 int main(int argc, char *argv[]) 0020 { 0021 QApplication app(argc, argv); 0022 0023 KCrash::initialize(); 0024 0025 KLocalizedString::setApplicationDomain("kregexpeditor"); 0026 0027 KAboutData aboutData(QStringLiteral("kregexpeditor"), 0028 i18n("RegExp Editor"), 0029 QStringLiteral("1.0"), 0030 i18n("Editor for Regular Expressions"), 0031 KAboutLicense::GPL, 0032 i18n("(c) 2002-2003 Jesper K. Pedersen")); 0033 aboutData.addAuthor(i18n("Laurent Montel"), i18n("Developer"), QStringLiteral("montel@kde.org")); 0034 aboutData.addAuthor(i18nc("@info:credit", "Carl Schwan"), 0035 i18nc("@info:credit", "Port to Qt6"), 0036 QStringLiteral("carl@carlschwan.eu"), 0037 QStringLiteral("https://carlschwan.eu"), 0038 QUrl(QStringLiteral("https://carlschwan.eu/avatar.png"))); 0039 0040 QCommandLineParser parser; 0041 KAboutData::setApplicationData(aboutData); 0042 aboutData.setupCommandLine(&parser); 0043 parser.process(app); 0044 aboutData.processCommandLine(&parser); 0045 0046 QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kregexpeditor"))); 0047 KRegExpEditorWindow window(nullptr); 0048 window.show(); 0049 0050 return app.exec(); 0051 }