From b1be9e45b5abdf0a03181b9cee8dc208a762fe57 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 30 Dec 2015 23:45:12 +0800 Subject: Complete Darkness. (WTF) --- qmpmainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qmpmainwindow.cpp') 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())); } -- cgit v1.2.3