summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-11 13:35:08 +0200
committerMontel Laurent <[email protected]>2017-09-11 13:35:08 +0200
commit82919add10d7ef097de418a7be8f1da08311c700 (patch)
treed013e388f1cd3753073dc190d5c68708cdb4b464
parent558886ff26ae68dcfcee322b7a67c3591447d44c (diff)
Remove usage of kaboutdata and i18n in test apps
-rw-r--r--agents/sendlateragent/tests/sendlaterinfo_gui.cpp7
-rw-r--r--src/sieveimapinterface/tests/vacation/main.cpp8
-rw-r--r--src/tests/dbustest.cpp6
-rw-r--r--src/tests/ktoolinvocationtest.cpp6
4 files changed, 0 insertions, 27 deletions
diff --git a/agents/sendlateragent/tests/sendlaterinfo_gui.cpp b/agents/sendlateragent/tests/sendlaterinfo_gui.cpp
index b77ff90..b0dd79a 100644
--- a/agents/sendlateragent/tests/sendlaterinfo_gui.cpp
+++ b/agents/sendlateragent/tests/sendlaterinfo_gui.cpp
@@ -18,8 +18,6 @@
*/
#include <QApplication>
-#include <KAboutData>
-#include <KLocalizedString>
#include <QCommandLineParser>
#include <QStandardPaths>
#include "sendlaterdialog.h"
@@ -28,15 +26,10 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
- KAboutData aboutData(QStringLiteral("sendlaterdialog_gui"), i18n("SendLaterDialog_Gui"), QStringLiteral("1.0"));
- aboutData.setShortDescription(i18n("Test for autocreate sendlater dialog"));
QCommandLineParser parser;
- KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
- aboutData.setupCommandLine(&parser);
parser.process(app);
- aboutData.processCommandLine(&parser);
SendLater::SendLaterDialog *dialog = new SendLater::SendLaterDialog(nullptr);
dialog->exec();
delete dialog;
diff --git a/src/sieveimapinterface/tests/vacation/main.cpp b/src/sieveimapinterface/tests/vacation/main.cpp
index 3744a35..31b2e93 100644
--- a/src/sieveimapinterface/tests/vacation/main.cpp
+++ b/src/sieveimapinterface/tests/vacation/main.cpp
@@ -18,7 +18,6 @@
#include <KLocalizedString>
#include <qapplication.h>
#include <QCommandLineParser>
-#include <kaboutdata.h>
#include <QStandardPaths>
#include <KSieveUi/MultiImapVacationDialog>
@@ -30,19 +29,12 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
- KAboutData aboutData(QStringLiteral("vacationmultiscripttest"),
- i18n("VacationMultiScriptTest_Gui"),
- QStringLiteral("1.0"));
-
- KAboutData::setApplicationData(aboutData);
QCommandLineParser parser;
parser.addVersionOption();
parser.addHelpOption();
- aboutData.setupCommandLine(&parser);
parser.process(app);
- aboutData.processCommandLine(&parser);
app.setQuitOnLastWindowClosed(true);
KSieveUi::SieveImapInstanceInterfaceManager::self()->setSieveImapInstanceInterface(new KMailSieveImapInstanceInterface);
diff --git a/src/tests/dbustest.cpp b/src/tests/dbustest.cpp
index cb374cc..9ce9f48 100644
--- a/src/tests/dbustest.cpp
+++ b/src/tests/dbustest.cpp
@@ -1,8 +1,6 @@
#include <qdebug.h>
#include <QCoreApplication>
-#include <KAboutData>
-#include <KLocalizedString>
#include <QCommandLineParser>
#include "kmailinterface.h"
@@ -11,15 +9,11 @@ int main(int argc, char **argv)
{
qDebug() << "Test KMail D-Bus interface.";
- KAboutData aboutData(QStringLiteral("testKMailDBUS"), i18n("Test for KMail D-Bus interface"), QStringLiteral("0.0"));
QCoreApplication app(argc, argv);
QCommandLineParser parser;
- KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
- aboutData.setupCommandLine(&parser);
parser.process(app);
- aboutData.processCommandLine(&parser);
OrgKdeKmailKmailInterface kmailInterface(QStringLiteral("org.kde.kmail"), QStringLiteral("/KMail"), QDBusConnection::sessionBus());
kmailInterface.openComposer(QStringLiteral("to 1"), QString(), QString(), QStringLiteral("First test"), QStringLiteral("simple openComp call"), 0);
diff --git a/src/tests/ktoolinvocationtest.cpp b/src/tests/ktoolinvocationtest.cpp
index 7538dd8..3ae0fe4 100644
--- a/src/tests/ktoolinvocationtest.cpp
+++ b/src/tests/ktoolinvocationtest.cpp
@@ -20,8 +20,6 @@
#include <qdebug.h>
#include <QCoreApplication>
-#include <KAboutData>
-#include <KLocalizedString>
#include <QCommandLineParser>
#include <KToolInvocation>
#include <QStandardPaths>
@@ -30,15 +28,11 @@ int main(int argc, char **argv)
{
qDebug() << "Test kinvocation by desktop name.";
- KAboutData aboutData(QStringLiteral("testKInvocation"), i18n("Test for KMail invocation"), QStringLiteral("0.0"));
QCoreApplication app(argc, argv);
QCommandLineParser parser;
- KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
- aboutData.setupCommandLine(&parser);
parser.process(app);
- aboutData.processCommandLine(&parser);
QString errmsg;
if (KToolInvocation::startServiceByDesktopName(QStringLiteral("org.kde.kmail2"), QString(), &errmsg)) {