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.hpp | |
parent | 8dc90ae27c24aec1851215f2cc28ee24eff01ea5 (diff) | |
download | QMidiPlayer-b1be9e45b5abdf0a03181b9cee8dc208a762fe57.tar.xz |
Complete Darkness. (WTF)
Diffstat (limited to 'qmpmainwindow.hpp')
-rw-r--r-- | qmpmainwindow.hpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/qmpmainwindow.hpp b/qmpmainwindow.hpp index 8d64f37..ae62bb4 100644 --- a/qmpmainwindow.hpp +++ b/qmpmainwindow.hpp @@ -14,7 +14,7 @@ namespace Ui { class qmpMainWindow; } -class qmpMainWindow : public QMainWindow +class qmpMainWindow:public QMainWindow { Q_OBJECT @@ -23,24 +23,18 @@ class qmpMainWindow : public QMainWindow void closeEvent(QCloseEvent *event); ~qmpMainWindow(); CMidiPlayer* getPlayer(){return player;} + QTimer* getTimer(){return timer;} private slots: void on_pbPlayPause_clicked(); void updateWidgets(); - void on_hsTimer_sliderPressed(); - void on_hsTimer_sliderReleased(); - void on_vsMasterVol_valueChanged(); - void on_pbStop_clicked(); - void on_pbPList_clicked(); void on_pbPrev_clicked(); - void on_pbNext_clicked(); - void on_pbChannels_clicked(); public slots: @@ -58,6 +52,8 @@ class qmpMainWindow : public QMainWindow qmpplistwindow *plistw; qmpchannelswindow *chnlw; + static qmpMainWindow* ref; + public: static qmpMainWindow* getInstance(){return ref;} }; -#endif // QMPMAINWINDOW_HPP +#endif // QMPMAINWINDOW_H |