diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-12-30 23:45:12 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-12-30 23:45:12 +0800 |
commit | b1be9e45b5abdf0a03181b9cee8dc208a762fe57 (patch) | |
tree | 1af8db6a9776af748c1d14e330a30ce61e162bea /qmpmainwindow.cpp | |
parent | 8dc90ae27c24aec1851215f2cc28ee24eff01ea5 (diff) | |
download | QMidiPlayer-b1be9e45b5abdf0a03181b9cee8dc208a762fe57.tar.xz |
Complete Darkness. (WTF)
Diffstat (limited to 'qmpmainwindow.cpp')
-rw-r--r-- | qmpmainwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qmpmainwindow.cpp b/qmpmainwindow.cpp index 69cf9df..f79583c 100644 --- a/qmpmainwindow.cpp +++ b/qmpmainwindow.cpp @@ -4,6 +4,8 @@ #include "ui_qmpmainwindow.h" #include "qmpmidiplay.hpp" +qmpMainWindow* qmpMainWindow::ref=NULL; + qmpMainWindow::qmpMainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::qmpMainWindow) @@ -13,7 +15,7 @@ qmpMainWindow::qmpMainWindow(QWidget *parent) : plistw=new qmpplistwindow(this); chnlw=new qmpchannelswindow(this); ui->lbFileName->setText(""); - timer=new QTimer(this); + timer=new QTimer(this);ref=this; connect(timer,SIGNAL(timeout()),this,SLOT(updateWidgets())); connect(timer,SIGNAL(timeout()),chnlw,SLOT(channelWindowsUpdate())); } |