diff options
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r-- | qmidiplayer-desktop/qmidiplayer-desktop.pro | 1 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmphelpwindow.cpp | 1 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmphelpwindow.hpp | 5 |
3 files changed, 7 insertions, 0 deletions
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 <QDialog> #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; |