aboutsummaryrefslogtreecommitdiff
path: root/qmpmainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-04 23:50:11 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-04 23:50:11 +0800
commit8099672c3fd0bfc7804b0a92d05c57dcd4307268 (patch)
treeabef139577986617a3fa31f31474ab9cd8b4627f /qmpmainwindow.cpp
parent84634010422f578b27105bbbaf6b8ee4c1232e86 (diff)
downloadQMidiPlayer-8099672c3fd0bfc7804b0a92d05c57dcd4307268.tar.xz
Shadow Pow"d"er. (WTF)
Diffstat (limited to 'qmpmainwindow.cpp')
-rw-r--r--qmpmainwindow.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qmpmainwindow.cpp b/qmpmainwindow.cpp
index d6cfc6e..00e23ff 100644
--- a/qmpmainwindow.cpp
+++ b/qmpmainwindow.cpp
@@ -19,6 +19,7 @@ qmpMainWindow::qmpMainWindow(QWidget *parent) :
chnlw=new qmpChannelsWindow(this);
efxw=new qmpEfxWindow(this);
infow=new qmpInfoWindow(this);
+ helpw=new qmpHelpWindow(this);
timer=new QTimer(this);
fnA1=new QAction("File Information",ui->lbFileName);
fnA2=new QAction("Render to Wave",ui->lbFileName);
@@ -58,6 +59,7 @@ void qmpMainWindow::closeEvent(QCloseEvent *event)
efxw->close();chnlw->close();
plistw->close();infow->close();
settingsw->close();
+ delete helpw;helpw=NULL;
delete efxw;efxw=NULL;
delete chnlw;chnlw=NULL;
delete plistw;plistw=NULL;
@@ -82,6 +84,7 @@ void qmpMainWindow::updateWidgets()
if(!plistw->getRepeat())
{
timer->stop();stopped=true;playing=false;
+ fnA2->setEnabled(stopped);
player->playerDeinit();playerTh->join();
delete playerTh;playerTh=NULL;
chnlw->on_pbUnmute_clicked();chnlw->on_pbUnsolo_clicked();
@@ -395,3 +398,8 @@ void qmpMainWindow::on_pbSettings_clicked()
{
if(ui->pbSettings->isChecked())settingsw->show();else settingsw->close();
}
+
+void qmpMainWindow::on_pushButton_clicked()
+{
+ helpw->show();
+}