aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpmainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-11-11 23:38:09 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-11-11 23:38:09 +0800
commitb4c4cefb706f9c43a54fecb18cb8ee50f0f0e19a (patch)
treec62673b5462240cacb8cbd144a654e811ba7bceb /qmidiplayer-desktop/qmpmainwindow.cpp
parent9f139f5807c3c18a77ebaa8e646355c19dca5ca9 (diff)
downloadQMidiPlayer-b4c4cefb706f9c43a54fecb18cb8ee50f0f0e19a.tar.xz
New UI hook "main.seek". Fix SysExc. message sending. API documentation update.
Simple visualization no longer have notes stuck after seeking. System exclusive messages longer than 256 bytes are now sent correctly.
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp
index 78230be..1715539 100644
--- a/qmidiplayer-desktop/qmpmainwindow.cpp
+++ b/qmidiplayer-desktop/qmpmainwindow.cpp
@@ -413,6 +413,7 @@ void qmpMainWindow::on_hsTimer_sliderPressed()
void qmpMainWindow::on_hsTimer_sliderReleased()
{
dragging=false;
+ invokeCallback("main.seek",nullptr);
if(playing)
{
if(ui->hsTimer->value()==100){on_pbNext_clicked();return;}
@@ -437,6 +438,7 @@ void qmpMainWindow::playerSeek(uint32_t percentage)
{
if(percentage>100)percentage=100;
if(percentage<0)percentage=0;
+ invokeCallback("main.seek",nullptr);
if(playing)
{
if(percentage==100){on_pbNext_clicked();return;}