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

Remove kaboutdata in tests apps

parent 897d4a4f
......@@ -23,7 +23,6 @@
#include "pimcommon_debug.h"
#include <KLocalizedString>
#include <KSharedConfig>
#include <QPointer>
......@@ -33,7 +32,6 @@
#include <QToolBar>
#include <QAction>
#include <QApplication>
#include <KAboutData>
#include <QCommandLineParser>
#include <QDialogButtonBox>
......@@ -148,15 +146,10 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
KAboutData aboutData(QStringLiteral("autocorrectiontest_gui"), i18n("AutoCorrectionTest_Gui"), QStringLiteral("1.0"));
aboutData.setShortDescription(i18n("Test for autocorrection widget"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
AutocorrectionTestWidget *w = new AutocorrectionTestWidget();
w->resize(800, 600);
......
......@@ -19,9 +19,7 @@
#include "pimcommon_debug.h"
#include <KLocalizedString>
#include <QApplication>
#include <KAboutData>
#include <QCommandLineParser>
#include <QStandardPaths>
......@@ -29,15 +27,10 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
KAboutData aboutData(QStringLiteral("richtexteditwithautocorrection_gui"), i18n("richtexteditwithautocorrectionTest_Gui"), QStringLiteral("1.0"));
aboutData.setShortDescription(i18n("Test for richtexteditwithautocorrection"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
PimCommon::RichTextEditWithAutoCorrection *w = new PimCommon::RichTextEditWithAutoCorrection;
......
......@@ -20,8 +20,6 @@
#include <QDebug>
#include <QStandardPaths>
#include <QApplication>
#include <KAboutData>
#include <KLocalizedString>
#include <QCommandLineParser>
#include <QCommandLineOption>
#include "logactivitiesmainwidget.h"
......@@ -29,17 +27,12 @@
int main(int argc, char **argv)
{
QApplication app(argc, argv);
KAboutData aboutData(QStringLiteral("logactivities"), i18n("logactivities_Gui"), QStringLiteral("1.0"));
aboutData.setShortDescription(i18n("Test for log activities"));
QStandardPaths::setTestModeEnabled(true);
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
LogActivitiesMainWidget *w = new LogActivitiesMainWidget;
w->show();
......
......@@ -19,7 +19,6 @@
#include <KLocalizedString>
#include <QApplication>
#include <KAboutData>
#include <QCommandLineParser>
#include <QStandardPaths>
......@@ -27,15 +26,10 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
KAboutData aboutData(QStringLiteral("translator_gui"), i18n("TranslatorTest_Gui"), QStringLiteral("1.0"));
aboutData.setShortDescription(i18n("Test for translator widget"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
PimCommon::TranslatorWidget *w = new PimCommon::TranslatorWidget();
w->show();
......
......@@ -19,12 +19,10 @@
#include "customtools/customtoolswidgetng.h"
#include "customtools/customtoolspluginmanager.h"
#include <QStandardPaths>
#include <KLocalizedString>
#include <KToggleAction>
#include <QVBoxLayout>
#include <QApplication>
#include <KAboutData>
#include <QCommandLineParser>
#include <QToolBar>
......@@ -55,15 +53,10 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
KAboutData aboutData(QStringLiteral("customtoolswidgetng_gui"), i18n("CustomToolWidgetsTestNg_Gui"), QStringLiteral("1.0"));
aboutData.setShortDescription(i18n("Test for customtoolswidget"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
CustomToolWidgetNgTest *w = new CustomToolWidgetNgTest();
w->resize(800, 200);
......
......@@ -18,9 +18,6 @@
#include <QWidget>
#include <QVBoxLayout>
#include <KAboutData>
#include <KLocalizedString>
#include <QApplication>
#include <QCommandLineParser>
......@@ -30,14 +27,10 @@
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
KAboutData aboutData(QStringLiteral("testspellchecklineedit"), i18n("Test SpellCheckLineEdit"), QStringLiteral("0.1"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
QWidget *w = new QWidget;
QVBoxLayout *vbox = new QVBoxLayout(w);
......
......@@ -20,8 +20,6 @@
#include "folderdialog/selectmulticollectiondialog.h"
#include <KMime/Message>
#include <QApplication>
#include <KAboutData>
#include <KLocalizedString>
#include <QCommandLineParser>
#include <QStandardPaths>
......@@ -29,15 +27,10 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
KAboutData aboutData(QStringLiteral("selectmulticollection_gui"), i18n("SelectMultiCollectiontest_Gui"), QStringLiteral("1.0"));
aboutData.setShortDescription(i18n("Test for selectmulticollection dialog"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
PimCommon::SelectMultiCollectionDialog *dialog = new PimCommon::SelectMultiCollectionDialog(KMime::Message::mimeType());
dialog->exec();
delete dialog;
......
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