diff options
author | Marco Bubke <marco.bubke@nokia.com> | 2010-09-09 19:37:01 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@nokia.com> | 2010-09-09 19:37:01 +0200 |
commit | 7aaaa750945cfd333404b20fa486e22bcb8dd732 (patch) | |
tree | 4cb72aa77b2656cb994d938a62e28f540205056f /src/app | |
parent | 3e152fc8aa8e67126122607408f3501e1ff944f2 (diff) | |
download | qt-creator-7aaaa750945cfd333404b20fa486e22bcb8dd732.tar.gz |
Add breakpad
This is not activated if breakpad and qt-breakpad is not availiable.
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/app.pro | 4 | ||||
-rw-r--r-- | src/app/main.cpp | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/app/app.pro b/src/app/app.pro index cea4a3af60..f46135df84 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -9,6 +9,10 @@ SOURCES += main.cpp include(../rpath.pri) +QT_BREAKPAD_ROOT_PATH = $$(QT_BREAKPAD_ROOT_PATH) +!isEmpty(QT_BREAKPAD_ROOT_PATH) { + include($$QT_BREAKPAD_ROOT_PATH/qtbreakpad.pri) +} win32 { CONFIG(debug, debug|release):LIBS *= -lExtensionSystemd -lAggregationd else:LIBS *= -lExtensionSystem -lAggregation diff --git a/src/app/main.cpp b/src/app/main.cpp index c08049f4c9..08abe59f0f 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -49,6 +49,10 @@ #include <QtGui/QApplication> #include <QtGui/QMainWindow> +#ifdef ENABLE_QT_BREAKPAD +#include <qtsystemexceptionhandler.h> +#endif + enum { OptionIndent = 4, DescriptionIndent = 24 }; static const char *appNameC = "Qt Creator"; @@ -180,6 +184,10 @@ int main(int argc, char **argv) SharedTools::QtSingleApplication app((QLatin1String(appNameC)), argc, argv); +#ifdef ENABLE_QT_BREAKPAD + QtSystemExceptionHandler systemExceptionHandler; +#endif + QTranslator translator; QTranslator qtTranslator; QString locale = QLocale::system().name(); |