From b79c4b7e3cab3711e87ba9e28fa8423a84ea7efa Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Tue, 27 Dec 2016 23:15:15 +0800 Subject: First official version with experimental support for the visualization plugin on Windows. Fixed several critical bugs causing the plugin to crash QMP. --- qmidiplayer-desktop/qmidiplayer-desktop.pro | 1 + qmidiplayer-desktop/qmphelpwindow.cpp | 1 + qmidiplayer-desktop/qmphelpwindow.hpp | 5 +++++ 3 files changed, 7 insertions(+) (limited to 'qmidiplayer-desktop') diff --git a/qmidiplayer-desktop/qmidiplayer-desktop.pro b/qmidiplayer-desktop/qmidiplayer-desktop.pro index 1aa1a27..5572479 100644 --- a/qmidiplayer-desktop/qmidiplayer-desktop.pro +++ b/qmidiplayer-desktop/qmidiplayer-desktop.pro @@ -55,6 +55,7 @@ FORMS += qmpmainwindow.ui \ qmphelpwindow.ui TRANSLATIONS += translations/qmp_zh_CN.ts +DEFINES += BUILD_MACHINE=$${QMAKE_HOST.name} unix{ isEmpty(PREFIX) { diff --git a/qmidiplayer-desktop/qmphelpwindow.cpp b/qmidiplayer-desktop/qmphelpwindow.cpp index c9f4667..b2346dd 100644 --- a/qmidiplayer-desktop/qmphelpwindow.cpp +++ b/qmidiplayer-desktop/qmphelpwindow.cpp @@ -40,6 +40,7 @@ void qmpHelpWindow::on_textBrowser_sourceChanged(const QUrl &src) s.replace("RT_FLUIDSYNTH_VERSION",fluid_version_str()); s.replace("APP_VERSION",APP_VERSION); s.replace("BUILD_DATE",parseDate(__DATE__).c_str()); + s.replace("BUILD_MACHINE",sss(BUILD_MACHINE)); ui->textBrowser->setHtml(s); } } diff --git a/qmidiplayer-desktop/qmphelpwindow.hpp b/qmidiplayer-desktop/qmphelpwindow.hpp index 690d126..61d9963 100644 --- a/qmidiplayer-desktop/qmphelpwindow.hpp +++ b/qmidiplayer-desktop/qmphelpwindow.hpp @@ -3,6 +3,11 @@ #include #define APP_VERSION "0.8.3" +#ifndef BUILD_MACHINE +#define BUILD_MACHINE UNKNOWN +#endif +#define ss(s) #s +#define sss(s) ss(s) namespace Ui { class qmpHelpWindow; -- cgit v1.2.3