diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-08-17 21:07:13 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-19 20:17:52 (GMT) |
commit | a216cabfbd9ee0244e70d1eb6093986e430c9ef1 (patch) | |
tree | 0786416c8c89cfbe898d6eb8b0e32fee7740923a /Swift | |
parent | 456f6297ddb670115430aedccc5a49908f32b2ea (diff) | |
download | swift-contrib-a216cabfbd9ee0244e70d1eb6093986e430c9ef1.zip swift-contrib-a216cabfbd9ee0244e70d1eb6093986e430c9ef1.tar.bz2 |
Added Breakpad support for Windows.
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/SConscript | 1 | ||||
-rw-r--r-- | Swift/QtUI/main.cpp | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Swift/QtUI/SConscript b/Swift/QtUI/SConscript index 70ec670..27ff237 100644 --- a/Swift/QtUI/SConscript +++ b/Swift/QtUI/SConscript @@ -31,6 +31,7 @@ if myenv["HAVE_SPARKLE"] : myenv.UseFlags(env["SPARKLE_FLAGS"]) myenv.UseFlags(env["SWIFTEN_FLAGS"]) myenv.UseFlags(env["SWIFTEN_DEP_FLAGS"]) +myenv.UseFlags(env["BREAKPAD_FLAGS"]) if myenv.get("HAVE_GROWL", False) : myenv.UseFlags(myenv["GROWL_FLAGS"]) myenv.Append(CPPDEFINES = ["HAVE_GROWL"]) diff --git a/Swift/QtUI/main.cpp b/Swift/QtUI/main.cpp index fc3bf15..9c99394 100644 --- a/Swift/QtUI/main.cpp +++ b/Swift/QtUI/main.cpp @@ -19,6 +19,7 @@ #include <Swift/Controllers/ApplicationInfo.h> #include <Swift/Controllers/BuildVersion.h> #include <SwifTools/Application/PlatformApplicationPathProvider.h> +#include <SwifTools/CrashReporter.h> #include "QtSwift.h" #include "QtTranslator.h" @@ -27,11 +28,16 @@ int main(int argc, char* argv[]) { QApplication app(argc, argv); + Swift::PlatformApplicationPathProvider applicationPathProvider(SWIFT_APPLICATION_NAME); + + Swift::CrashReporter crashReporter(applicationPathProvider.getDataDir() / "crashes"); + QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); // Translation QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); - boost::filesystem::path someTranslationPath = Swift::PlatformApplicationPathProvider(SWIFT_APPLICATION_NAME).getResourcePath("/translations/swift_en.qm"); + boost::filesystem::path someTranslationPath = applicationPathProvider.getResourcePath("/translations/swift_en.qm"); + QTranslator qtTranslator; if (!someTranslationPath.empty()) { #if QT_VERSION >= 0x040800 |