1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 02:32:29 +01:00

Add google breakpad for crash analytics

This commit is contained in:
Elias Steurer 2020-03-06 12:39:42 +01:00
parent cfbf825d50
commit 4785956b2d
5 changed files with 10 additions and 2 deletions

3
.gitmodules vendored
View File

@ -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

1
Common/qt-breakpad Submodule

@ -0,0 +1 @@
Subproject commit 4427e3b03e1fc4442ac539e4165d4855716f1d3b

View File

@ -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

View File

@ -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");

View File

@ -10,13 +10,14 @@
#include <QStringList>
#include <QUrl>
#include <QtGlobal>
#include <qqml.h>
#include <QtQml>
#include <QtWebEngine>
#include <memory>
#include "ganalytics.h"
#include "qt_breakpad.h"
#include "src/create.h"
#include "src/globalvariables.h"
#include "src/installedlistfilter.h"