Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 83fd3332 authored by Laurent Montel's avatar Laurent Montel 😁

Remove kaboutdata in test apps

parent 9d67a2df
......@@ -33,7 +33,6 @@
#include "syndication_version.h"
#include <qapplication.h>
#include <kaboutdata.h>
#include <qurl.h>
......@@ -85,18 +84,13 @@ int main(int argc, char **argv)
}
QApplication app(argc, argv);
KAboutData aboutData(QLatin1String("testlibsyndication"), QLatin1String("testlibsyndication"), QLatin1String("0.1"));
KAboutData::setApplicationData(aboutData);
QCommandLineParser parser;
app.setApplicationVersion(QLatin1String(SYNDICATION_VERSION_STRING));
parser.addVersionOption();
parser.addHelpOption();
parser.addOption(QCommandLineOption(QStringList() << QLatin1String("+url"), QLatin1String("URL of feed")));
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
if (parser.positionalArguments().count() != 1) {
parser.showHelp();
......
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