diff --git a/.gitmodules b/.gitmodules index dc8963bc..c348da2c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "Common/qt-google-analytics"] path = Common/qt-google-analytics url = https://github.com/HSAnet/qt-google-analytics.git +[submodule "Common/qt-breakpad"] + path = Common/qt-breakpad + url = https://github.com/kelteseth/qt-breakpad diff --git a/Common/qt-breakpad b/Common/qt-breakpad new file mode 160000 index 00000000..4427e3b0 --- /dev/null +++ b/Common/qt-breakpad @@ -0,0 +1 @@ +Subproject commit 4427e3b03e1fc4442ac539e4165d4855716f1d3b diff --git a/ScreenPlay/ScreenPlay.pro b/ScreenPlay/ScreenPlay.pro index d50958a2..1c2178fc 100644 --- a/ScreenPlay/ScreenPlay.pro +++ b/ScreenPlay/ScreenPlay.pro @@ -5,6 +5,8 @@ CONFIG += c++17 TARGETPATH = ScreenPlay include($$PWD/../Common/qt-google-analytics/qt-google-analytics.pri) +include($$PWD/../Common/qt-breakpad/qt-breakpad.pri) + ICON = favicon.ico DEFINES += QT_DEPRECATED_WARNINGS diff --git a/ScreenPlay/app.cpp b/ScreenPlay/app.cpp index de041063..00d7b12d 100644 --- a/ScreenPlay/app.cpp +++ b/ScreenPlay/app.cpp @@ -52,6 +52,7 @@ App::App() QGuiApplication::setApplicationVersion("0.9.0"); QGuiApplication::setQuitOnLastWindowClosed(false); + QtBreakpad::init(QDir::current().absolutePath()); QFontDatabase::addApplicationFont(":/assets/fonts/LibreBaskerville-Italic.ttf"); QFontDatabase::addApplicationFont(":/assets/fonts/Roboto-Light.ttf"); QFontDatabase::addApplicationFont(":/assets/fonts/Roboto-Regular.ttf"); diff --git a/ScreenPlay/app.h b/ScreenPlay/app.h index ebdc7d4f..ae9d128c 100644 --- a/ScreenPlay/app.h +++ b/ScreenPlay/app.h @@ -10,13 +10,14 @@ #include #include #include -#include - +#include #include #include #include "ganalytics.h" +#include "qt_breakpad.h" + #include "src/create.h" #include "src/globalvariables.h" #include "src/installedlistfilter.h"