diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-16 21:03:44 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-16 21:03:44 +0800 |
commit | f3694385610a66215b65fafc1e05680baddeb090 (patch) | |
tree | a183da31372ce97c3e02d34d50647e565062e1f1 /qmidiplayer-desktop/qmpmainwindow.hpp | |
parent | 56374529448b63cc5d94b344da14e8d90ee6e17d (diff) | |
download | QMidiPlayer-f3694385610a66215b65fafc1e05680baddeb090.tar.xz |
Fixed two bugs in initialization process.
Documentation...
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.hpp')
-rw-r--r-- | qmidiplayer-desktop/qmpmainwindow.hpp | 3 |
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; |