Commit 77aed7a4 authored by Christoph Feck's avatar Christoph Feck

KF5 port: K4AboutData -> KAboutData

This also temporarily removes the KCmdLineArgs handling.
parent 989006b1
......@@ -17,11 +17,9 @@
#include <QApplication>
#include <kcmdlineargs.h>
#include <k4aboutdata.h>
#include <klocale.h>
#include <ktoggleaction.h>
#include <kselectaction.h>
#include <KAboutData>
#include <KLocalizedString>
#include "kmag.h"
#include "version.h"
......@@ -37,30 +35,25 @@ KmagApp *kmagapp;
int main(int argc, char *argv[])
{
// about the application
K4AboutData *aboutData = new K4AboutData("kmag", 0, ki18n("KMagnifier"), KMAG_VERSION,
ki18n("Screen magnifier for the K Desktop Environment (KDE)"),
K4AboutData::License_GPL,
ki18n("Copyright 2001-2003 Sarang Lakare\nCopyright 2003-2004 Olaf Schmidt\nCopyright 2008 Matthew Woehlke"), KLocalizedString(),
"http://accessibility.kde.org/");
KAboutData aboutData(QLatin1String("kmag"), i18n("KMagnifier"), QLatin1String(KMAG_VERSION),
i18n("Screen magnifier for the K Desktop Environment (KDE)"),
KAboutLicense::GPL,
i18n("Copyright 2001-2003 Sarang Lakare\nCopyright 2003-2004 Olaf Schmidt\nCopyright 2008 Matthew Woehlke"), QString(),
QLatin1String("http://accessibility.kde.org/"));
// about the authors
aboutData->addAuthor(ki18n("Sarang Lakare"),
ki18n("Rewrite"),"sarang@users.sf.net",
"http://www.cs.sunysb.edu/~lsarang/linux");
aboutData->addAuthor(ki18n("Michael Forster"),
ki18n("Original idea and author (KDE1)"), "forster@fmi.uni-passau.de");
aboutData->addAuthor(ki18n("Olaf Schmidt"), ki18n("Rework of the user interface, improved selection window, speed optimization, rotation, bug fixes"), "ojschmidt@kde.org");
aboutData->addCredit(ki18n("Matthew Woehlke"), ki18n("Color-blindness simulation"), "mw_triad@users.sourceforge.net");
aboutData->addCredit(ki18n("Sebastian Sauer"), ki18n("Focus tracking"), "sebsauer@kdab.com");
aboutData->addCredit(ki18n("Claudiu Costin"), ki18n("Some tips"), "claudiuc@work.ro", "http://www.ro.kde.org");
KCmdLineArgs::init( argc, argv, aboutData );
KCmdLineOptions options;
options.add("+[File]", ki18n("File to open"));
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
aboutData.addAuthor(i18n("Sarang Lakare"),
i18n("Rewrite"),QLatin1String("sarang@users.sf.net"),
QLatin1String("http://www.cs.sunysb.edu/~lsarang/linux"));
aboutData.addAuthor(i18n("Michael Forster"),
i18n("Original idea and author (KDE1)"), QLatin1String("forster@fmi.uni-passau.de"));
aboutData.addAuthor(i18n("Olaf Schmidt"), i18n("Rework of the user interface, improved selection window, speed optimization, rotation, bug fixes"), QLatin1String("ojschmidt@kde.org"));
aboutData.addCredit(i18n("Matthew Woehlke"), i18n("Color-blindness simulation"), QLatin1String("mw_triad@users.sourceforge.net"));
aboutData.addCredit(i18n("Sebastian Sauer"), i18n("Focus tracking"), QLatin1String("sebsauer@kdab.com"));
aboutData.addCredit(i18n("Claudiu Costin"), i18n("Some tips"), QLatin1String("claudiuc@work.ro"), QLatin1String("http://www.ro.kde.org"));
QApplication app(argc, argv);
KAboutData::setApplicationData(aboutData);
if (app.isSessionRestored())
{
......@@ -70,10 +63,6 @@ int main(int argc, char *argv[])
{
kmagapp = new KmagApp();
kmagapp->show();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
args->clear();
}
return app.exec();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment