summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-23 19:48:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-23 19:48:06 +0200
commit18e2eb1ad59db93f575bf9199d9f361c05161e70 (patch)
tree97310231baa38b7652bd51df8fb525444a9a1dc1 /facetracknoir
parent82d38a7ed6f1238909c6a493b002a9d4cafe548d (diff)
integrate Git version in the titlebar
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/facetracknoir.cpp2
-rw-r--r--facetracknoir/facetracknoir.h3
-rw-r--r--facetracknoir/main.cpp4
3 files changed, 8 insertions, 1 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index 0a47e661..4884001e 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -420,7 +420,7 @@ void FaceTrackNoIR::loadSettings() {
// Put the filename in the window-title.
//
QFileInfo pathInfo ( currentFile );
- setWindowTitle ( ("opentrack " OPENTRACK_VERSION " ") + pathInfo.fileName() );
+ setWindowTitle(QString( OPENTRACK_VERSION " :: ") + pathInfo.fileName());
//
// Get a List of all the INI-files in the (currently active) Settings-folder.
diff --git a/facetracknoir/facetracknoir.h b/facetracknoir/facetracknoir.h
index 491274c8..499bdf3f 100644
--- a/facetracknoir/facetracknoir.h
+++ b/facetracknoir/facetracknoir.h
@@ -58,6 +58,8 @@
#include "ftnoir_tracker_base/ftnoir_tracker_base.h"
#include "ftnoir_filter_base/ftnoir_filter_base.h"
+#include "opentrack-version.h"
+
class Tracker; // pre-define class to avoid circular includes
class FaceTrackNoIR;
@@ -68,6 +70,7 @@ class FaceTrackNoIR : public QMainWindow, IDynamicLibraryProvider
Q_OBJECT
public:
+ volatile const char* __opentrack_version__ = "$OPENTRACK_VERSION=" OPENTRACK_VERSION "$";
FaceTrackNoIR(QWidget *parent = 0, Qt::WindowFlags flags = 0);
~FaceTrackNoIR();
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp
index 0c8e5c11..5ba7e3b2 100644
--- a/facetracknoir/main.cpp
+++ b/facetracknoir/main.cpp
@@ -41,6 +41,10 @@ bool dumpCallback(const wchar_t* dump_path,
MDRawAssertionInfo* assertion,
bool succeeded)
{
+ MessageBoxA(GetDesktopWindow(),
+ "Generating crash dump!\r\n"
+ "Please send the .dmp file to <sthalik@misaki.pl> to help us improve the code.",
+ "opentrack crashed :(");
return succeeded;
}