Commit aa2ea505 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Reduce unneeded dependencies

Summary:
No need to translate a test app that is not even being installed.
Make it a QGuiApplication so less stuff is pulled.

Test Plan: Still crashes :)

Reviewers: #frameworks, davidedmundson, sitter

Reviewed By: davidedmundson, sitter

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D28061
parent 0771e70e
......@@ -2,6 +2,6 @@ add_executable(crashtest crashtest.cpp)
ecm_mark_as_test(crashtest)
ecm_mark_nongui_executable(crashtest)
target_link_libraries(crashtest
KF5::I18n KF5::Crash KF5::CoreAddons Qt5::Widgets
KF5::Crash KF5::CoreAddons Qt5::Gui
Qt5::Concurrent)
......@@ -31,9 +31,8 @@
#include <kaboutdata.h>
#include <assert.h>
#include <QtConcurrentMap>
#include <KLocalizedString>
#include <QCommandLineParser>
#include <QApplication>
#include <QGuiApplication>
#include <KAboutData>
enum CrashType { Crash, Malloc, Div0, Assert, QAssert, Threads, FatalErrorMessage };
......@@ -129,17 +128,17 @@ void level1(int t)
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
KAboutData aboutData(QStringLiteral("crashtext"), i18n("Crash Test for DrKonqi"),
QGuiApplication app(argc, argv);
KAboutData aboutData(QStringLiteral("crashtest"), QStringLiteral("Crash Test for DrKonqi"),
QStringLiteral("1.1"),
i18n("Crash Test for DrKonqi"),
QStringLiteral("Crash Test for DrKonqi"),
KAboutLicense::GPL,
i18n("(c) 2000-2002 David Faure, Waldo Bastian"));
QStringLiteral("(c) 2000-2002 David Faure, Waldo Bastian"));
QCommandLineParser parser;
parser.addOption(QCommandLineOption(QStringLiteral("autorestart"), i18n("Automatically restart")));
parser.addOption(QCommandLineOption(QStringLiteral("kdeinit"), i18n("Start DrKonqi using kdeinit")));
parser.addPositionalArgument(QStringLiteral("type"), i18n("Type of crash."), QStringLiteral("crash|malloc|div0|assert|threads|fatal"));
parser.addOption(QCommandLineOption(QStringLiteral("autorestart"), QStringLiteral("Automatically restart")));
parser.addOption(QCommandLineOption(QStringLiteral("kdeinit"), QStringLiteral("Start DrKonqi using kdeinit")));
parser.addPositionalArgument(QStringLiteral("type"), QStringLiteral("Type of crash."), QStringLiteral("crash|malloc|div0|assert|threads|fatal"));
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
......
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