File indexing completed on 2024-04-21 03:41:34
0001 /************************************************************************************* 0002 * Copyright (C) 2007 by Aleix Pol <aleixpol@kde.org> * 0003 * * 0004 * This program is free software; you can redistribute it and/or * 0005 * modify it under the terms of the GNU General Public License * 0006 * as published by the Free Software Foundation; either version 2 * 0007 * of the License, or (at your option) any later version. * 0008 * * 0009 * This program is distributed in the hope that it will be useful, * 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0012 * GNU General Public License for more details. * 0013 * * 0014 * You should have received a copy of the GNU General Public License * 0015 * along with this program; if not, write to the Free Software * 0016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 0017 *************************************************************************************/ 0018 0019 #include "kalgebra.h" 0020 #include "kalgebra_version.h" 0021 #include <KAboutData> 0022 #include <KLocalizedString> 0023 #include <QApplication> 0024 #include <QCommandLineParser> 0025 0026 int main(int argc, char *argv[]) 0027 { 0028 QApplication app(argc, argv); 0029 KLocalizedString::setApplicationDomain("kalgebra"); 0030 KAboutData about(QStringLiteral("kalgebra"), 0031 QStringLiteral("KAlgebra"), 0032 QStringLiteral(KALGEBRA_VERSION_STRING), 0033 i18n("A portable calculator"), 0034 KAboutLicense::GPL, 0035 i18n("(C) 2006-2016 Aleix Pol i Gonzalez")); 0036 about.addAuthor(i18n("Aleix Pol i Gonzalez"), QString(), QStringLiteral("aleixpol@kde.org")); 0037 about.setTranslator(i18nc("NAME OF TRANSLATORS", "Your names"), i18nc("EMAIL OF TRANSLATORS", "Your emails")); 0038 KAboutData::setApplicationData(about); 0039 0040 { 0041 QCommandLineParser parser; 0042 about.setupCommandLine(&parser); 0043 parser.process(app); 0044 about.processCommandLine(&parser); 0045 } 0046 QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kalgebra"))); 0047 0048 KAlgebra widget; 0049 widget.show(); 0050 0051 return app.exec(); 0052 }