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 5f045949 authored by Laurent Montel's avatar Laurent Montel 😁

Remove usage of kaboutdata and i18n in test apps

parent c65a9d7b
......@@ -21,7 +21,6 @@
#include <KLocalizedString>
#include <QApplication>
#include <KAboutData>
#include <QCommandLineParser>
#include <QStandardPaths>
......@@ -29,15 +28,10 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
KAboutData aboutData(QStringLiteral("selectiontypedialog_gui"), i18n("SelectionTypeTest_Gui"), QStringLiteral("1.0"));
aboutData.setShortDescription(i18n("Test for selectiontypedialog"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
SelectionTypeDialog *dialog = new SelectionTypeDialog;
dialog->resize(800, 600);
......
......@@ -22,7 +22,6 @@
#include <KLocalizedString>
#include <QFileDialog>
#include <QApplication>
#include <KAboutData>
#include <QCommandLineParser>
#include <QCommandLineOption>
#include <QStandardPaths>
......@@ -31,16 +30,11 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
KAboutData aboutData(QStringLiteral("showarchivestructuredialog_gui"), i18n("showarchivestructuredialog_Gui"), QStringLiteral("1.0"));
aboutData.setShortDescription(i18n("Test for showarchivestructuredialog"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("+[url]"), i18n("URL of a archive to open")));
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
QString fileName;
if (parser.positionalArguments().count()) {
......
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