diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-06 23:43:01 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-06 23:43:01 +0800 |
commit | 909cfe195ae2f6058a03875123f1e80f2a3fa0fa (patch) | |
tree | 9a6fcc0fa6390b8f503881999e4f08a8cd650c49 /qmidiplayer-desktop/qmpmainwindow.cpp | |
parent | 8da0f5c82fb91c2731cd2e90a875fe92c6557407 (diff) | |
download | QMidiPlayer-909cfe195ae2f6058a03875123f1e80f2a3fa0fa.tar.xz |
Use new SMELT rendering API for notes drawing.
Deinitialize classes in a correct order to avoid crashes.
Add background image option.
Add FPS-related options.
Use QLineEdit instead of QPlainTextEdit for strings.
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpmainwindow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp index d25cadd..3842757 100644 --- a/qmidiplayer-desktop/qmpmainwindow.cpp +++ b/qmidiplayer-desktop/qmpmainwindow.cpp @@ -61,9 +61,8 @@ qmpMainWindow::qmpMainWindow(QWidget *parent) : qmpMainWindow::~qmpMainWindow() { - if(player)delete player; - if(timer)delete timer; - delete pmgr;delete ui; + delete pmgr;if(player)delete player; + if(timer)delete timer;delete ui; } void qmpMainWindow::init() |