aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmphelpwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-01-11 22:04:07 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-01-11 22:57:01 +0800
commit12ad6495fa332ea499485082272f796c4b08c83c (patch)
tree644607f6523185050a069fcf6eb6255c45060181 /qmidiplayer-desktop/qmphelpwindow.cpp
parent06496661120f7858f26a29f76631e6f0a0ebae7f (diff)
downloadQMidiPlayer-12ad6495fa332ea499485082272f796c4b08c83c.tar.xz
Bring back i18n support.
Address compiler warnings in QDialSkualptureStyle. Introduced build BUILD_PORTABLE, replacing QMP_BUILD_MODE in the QMake project. The QMake project is now fully covered by the CMake project and officially deprecated.
Diffstat (limited to 'qmidiplayer-desktop/qmphelpwindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmphelpwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmphelpwindow.cpp b/qmidiplayer-desktop/qmphelpwindow.cpp
index 2faed61..325fc57 100644
--- a/qmidiplayer-desktop/qmphelpwindow.cpp
+++ b/qmidiplayer-desktop/qmphelpwindow.cpp
@@ -1,6 +1,7 @@
#include <fluidsynth.h>
#include "qmphelpwindow.hpp"
#include "ui_qmphelpwindow.h"
+#define strify(s) #s
static const char *months="JanFebMarAprMayJunJulAugSepOctNovDec";
std::string parseDate(const char *date)
@@ -38,7 +39,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));
+ s.replace("BUILD_MACHINE",strify(BUILD_MACHINE));
ui->textBrowser->setHtml(s);
}
}