Add Video support in version string

.. so you can tell what support has been compiled in
   to the binary from a crash report.
This commit is contained in:
Mark Liversedge
2014-07-04 08:53:25 +01:00
parent 9712de07a1
commit 2796827a6e
2 changed files with 21 additions and 0 deletions

View File

@@ -30,6 +30,12 @@
#define GCC_VERSION QString("%1.%2.%3").arg(__GNUC__).arg(__GNUC_MINOR__).arg(__GNUC_PATCHLEVEL__)
#ifndef Q_OS_MAC
#include "VideoWindow.h"
#else
#include "QtMacVideoWindow.h"
#endif
#ifdef GC_HAVE_QWTPLOT3D
#include "qwt3d_global.h"
#endif
@@ -262,6 +268,7 @@ QString GcCrashDialog::versionHTML()
"<tr><td colspan=\"2\">Wahoo API</td><td>%12</td></tr>"
"<tr><td colspan=\"2\">VLC</td><td>%13</td></tr>"
"<tr><td colspan=\"2\">LUCENE</td><td>%14</td></tr>"
"<tr><td colspan=\"2\">VIDEO</td><td>%15</td></tr>"
"</table>"
)
.arg(QT_VERSION_STR)
@@ -278,6 +285,16 @@ QString GcCrashDialog::versionHTML()
.arg(wfapi)
.arg(vlc)
.arg(clucene)
#ifdef GC_VIDEO_NONE
.arg("none")
#elif defined GC_VIDEO_QUICKTIME
.arg("quicktime")
#elif defined GC_VIDEO_QT5
.arg("qt5")
#elif defined GC_VIDEO_VLC
.arg("vlc")
#endif
;
QString versionText = QString("<center>" + gc_version + lib_version + "</center>");

View File

@@ -49,6 +49,10 @@ class MediaHelper
#ifndef GC_VIDEO_NONE
#ifndef GC_VIDEO_QUICKTIME
#define GC_VIDEO_QUICKTIME
#endif
// We add references to the Native objects, but since we
// will be running Qt's moc utility on this file we need
// to make sure we use the right semantics for compiling