Commit ebb96bc0 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Fix linking against KCrash for DrKonqui integration.

parent c1feb03e
...@@ -56,6 +56,7 @@ find_package(Qt5 5.5 REQUIRED COMPONENTS ...@@ -56,6 +56,7 @@ find_package(Qt5 5.5 REQUIRED COMPONENTS
find_package(KF5 REQUIRED COMPONENTS find_package(KF5 REQUIRED COMPONENTS
Config Config
ConfigWidgets ConfigWidgets
Crash
Declarative Declarative
I18n I18n
NewStuff NewStuff
......
...@@ -162,6 +162,7 @@ target_link_libraries(artikulate ...@@ -162,6 +162,7 @@ target_link_libraries(artikulate
Qt5::Qml Qt5::Qml
Qt5::Quick Qt5::Quick
KF5::ConfigWidgets KF5::ConfigWidgets
KF5::Crash
KF5::Declarative KF5::Declarative
KF5::NewStuff KF5::NewStuff
KF5::XmlGui KF5::XmlGui
...@@ -177,6 +178,7 @@ target_link_libraries(artikulate_editor ...@@ -177,6 +178,7 @@ target_link_libraries(artikulate_editor
Qt5::Quick Qt5::Quick
Qt5::QuickWidgets Qt5::QuickWidgets
KF5::ConfigWidgets KF5::ConfigWidgets
KF5::Crash
KF5::Declarative KF5::Declarative
KF5::NewStuff KF5::NewStuff
KF5::XmlGui KF5::XmlGui
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "version.h" #include "version.h"
#include <KAboutData> #include <KAboutData>
#include <KCrash>
#include <KLocalizedString> #include <KLocalizedString>
#include <QDebug> #include <QDebug>
...@@ -51,6 +52,9 @@ int main(int argc, char **argv) ...@@ -51,6 +52,9 @@ int main(int argc, char **argv)
aboutData.addAuthor(ki18nc("@info:credit Developer name", "Magdalena Konkiewicz").toString(), aboutData.addAuthor(ki18nc("@info:credit Developer name", "Magdalena Konkiewicz").toString(),
ki18nc("@info:credit Role", "Developer and Course Data").toString()); ki18nc("@info:credit Role", "Developer and Course Data").toString());
// TODO: for >=KF5.15 use KCrash::initialize();
KCrash::setCrashHandler(KCrash::defaultCrashHandler);
Application app(argc, argv); Application app(argc, argv);
KAboutData::setApplicationData(aboutData); KAboutData::setApplicationData(aboutData);
new MainWindow(); new MainWindow();
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "mainwindow_editor.h" #include "mainwindow_editor.h"
#include <KAboutData> #include <KAboutData>
#include <KCrash>
#include <KLocalizedString> #include <KLocalizedString>
#include <QDebug> #include <QDebug>
...@@ -41,6 +42,10 @@ int main(int argc, char **argv) ...@@ -41,6 +42,10 @@ int main(int argc, char **argv)
ki18nc("@info:credit Role", "Original Author").toString(), ki18nc("@info:credit Role", "Original Author").toString(),
"cordlandwehr@kde.org"); "cordlandwehr@kde.org");
// TODO: for >=KF5.15 use KCrash::initialize();
KCrash::setCrashHandler(KCrash::defaultCrashHandler);
Application app(argc, argv); Application app(argc, argv);
KAboutData::setApplicationData(aboutData); KAboutData::setApplicationData(aboutData);
......
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