diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-01-16 23:46:05 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-01-16 23:46:05 +0800 |
commit | 63224bf7ac365b428e5115fc6ef6339a0b40c9fa (patch) | |
tree | 45d72410a3f19200945b304d4c20f03fc6cdc0f9 /qmidiplayer-desktop/qmphelpwindow.cpp | |
parent | f7f2e9039cfd6c3d07a28137e321fa96b0267084 (diff) | |
download | QMidiPlayer-63224bf7ac365b428e5115fc6ef6339a0b40c9fa.tar.xz |
Seeking while paused no longer breaks playback completely.
"main.seek" callbacks are now invoked after the player has done seeking,
fixing incorrect channel info in simple visualization after seeking.
Use QT_STRINGIFY.
Diffstat (limited to 'qmidiplayer-desktop/qmphelpwindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmphelpwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qmidiplayer-desktop/qmphelpwindow.cpp b/qmidiplayer-desktop/qmphelpwindow.cpp index 325fc57..4579e2c 100644 --- a/qmidiplayer-desktop/qmphelpwindow.cpp +++ b/qmidiplayer-desktop/qmphelpwindow.cpp @@ -1,7 +1,6 @@ #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) @@ -39,7 +38,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",strify(BUILD_MACHINE)); + s.replace("BUILD_MACHINE",QT_STRINGIFY(BUILD_MACHINE)); ui->textBrowser->setHtml(s); } } |