aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2024-01-14 00:57:23 -0500
committerGravatar Chris Xiong <chirs241097@gmail.com> 2024-01-14 00:57:23 -0500
commit7830db71fa0160d7f40ea9b4650003019c2ff50c (patch)
tree27f055fd36a64ea76a74587caa22eed617147c03 /qmidiplayer-desktop
parentf7def0d883fa5cab62ef61b40b9f857245be8e6c (diff)
downloadQMidiPlayer-7830db71fa0160d7f40ea9b4650003019c2ff50c.tar.xz
Fixes for channels window and simple visualization.
a) Channel status light doesn't blink in release builds. b) Simple visualization shows blank channel info when opened.
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r--qmidiplayer-desktop/qmpchannelswindow.cpp3
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.cpp2
-rw-r--r--qmidiplayer-desktop/qmpplugin.cpp2
3 files changed, 4 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.cpp b/qmidiplayer-desktop/qmpchannelswindow.cpp
index 7743084..a97d86b 100644
--- a/qmidiplayer-desktop/qmpchannelswindow.cpp
+++ b/qmidiplayer-desktop/qmpchannelswindow.cpp
@@ -8,7 +8,8 @@
#include "ui_qmpchannelswindow.h"
#include "qmpmainwindow.hpp"
-qmpChannelsModel::qmpChannelsModel(QObject *parent): QAbstractTableModel(parent)
+qmpChannelsModel::qmpChannelsModel(QObject *parent): QAbstractTableModel(parent),
+ updatequeued(false)
{
evh = qmpMainWindow::getInstance()->getPlayer()->registerEventHandler(
[this](const void *_e, void *)
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp
index 9b18e0d..cc315df 100644
--- a/qmidiplayer-desktop/qmpmainwindow.cpp
+++ b/qmidiplayer-desktop/qmpmainwindow.cpp
@@ -601,7 +601,7 @@ void qmpMainWindow::on_pbPlayPause_clicked()
offset = 0;
timer->start(UPDATE_INTERVAL);
stopped = false;
- ui->pbPlayPause->setIcon(QIcon(getThemedIcon(":/img/play.svg")));
+ ui->pbPlayPause->setIcon(QIcon(getThemedIcon(":/img/pause.svg")));
}
else
setPaused(playing);
diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp
index 7efd345..eb374d6 100644
--- a/qmidiplayer-desktop/qmpplugin.cpp
+++ b/qmidiplayer-desktop/qmpplugin.cpp
@@ -180,7 +180,7 @@ double qmpPluginAPIImpl::getRealTempo()
}
uint32_t qmpPluginAPIImpl::getTimeSig()
{
- int n, d = 0, t;
+ int n, d = 0, t = 1;
qmw &&qmw->getPlayer() ? qmw->getPlayer()->getCurrentTimeSignature(&n, &t) : void(0);
for (; t >>= 1; ++d);
return n << 8 | d;