aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpmainwindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-16 21:03:44 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-16 21:03:44 +0800
commitf3694385610a66215b65fafc1e05680baddeb090 (patch)
treea183da31372ce97c3e02d34d50647e565062e1f1 /qmidiplayer-desktop/qmpmainwindow.hpp
parent56374529448b63cc5d94b344da14e8d90ee6e17d (diff)
downloadQMidiPlayer-f3694385610a66215b65fafc1e05680baddeb090.tar.xz
Fixed two bugs in initialization process.
Documentation...
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.hpp')
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.hpp b/qmidiplayer-desktop/qmpmainwindow.hpp
index a409d2e..e17a792 100644
--- a/qmidiplayer-desktop/qmpmainwindow.hpp
+++ b/qmidiplayer-desktop/qmpmainwindow.hpp
@@ -29,6 +29,7 @@ class qmpMainWindow:public QMainWindow
public:
explicit qmpMainWindow(QWidget *parent = 0);
+ void init();
void closeEvent(QCloseEvent *event);
void moveEvent(QMoveEvent *event);
void dropEvent(QDropEvent *event);
@@ -66,7 +67,7 @@ class qmpMainWindow:public QMainWindow
private:
Ui::qmpMainWindow *ui;
QTimer *timer;
- bool playing,stopped,dragging,fin,singleFS;
+ bool playing,stopped,dragging,fin,singleFS,havemidi;
std::thread *playerTh=NULL;
std::thread *renderTh=NULL;
std::chrono::steady_clock::time_point st;