diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-12-29 23:54:24 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-12-29 23:54:24 +0800 |
commit | 8dc90ae27c24aec1851215f2cc28ee24eff01ea5 (patch) | |
tree | 13a604bf55804960ced6ec7559f626962a1265bd /qmpchannelswindow.hpp | |
parent | 40ea6580aaf3d19aa77f43551185a55013d216d9 (diff) | |
download | QMidiPlayer-8dc90ae27c24aec1851215f2cc28ee24eff01ea5.tar.xz |
Master Spark. (WTF)
Diffstat (limited to 'qmpchannelswindow.hpp')
-rw-r--r-- | qmpchannelswindow.hpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/qmpchannelswindow.hpp b/qmpchannelswindow.hpp index 4bf3ad2..a594a5a 100644 --- a/qmpchannelswindow.hpp +++ b/qmpchannelswindow.hpp @@ -1,14 +1,30 @@ #ifndef QMPCHANNELSWINDOW_H #define QMPCHANNELSWINDOW_H +#include <QLabel> #include <QDialog> #include <QCloseEvent> +#include "qmppresetselect.hpp" namespace Ui { class qmpchannelswindow; } -class qmpchannelswindow : public QDialog +class QDCLabel:public QLabel +{ + Q_OBJECT + using QLabel::QLabel; + private: + int id; + protected: + void mouseDoubleClickEvent(QMouseEvent *event){event->accept();emit onDoubleClick(id);} + public: + void setID(int _id){id=_id;} + signals: + void onDoubleClick(int id); +}; + +class qmpchannelswindow:public QDialog { Q_OBJECT @@ -21,13 +37,15 @@ class qmpchannelswindow : public QDialog public slots: void channelWindowsUpdate(); void channelMSChanged(); + void showPresetWindow(int chid); private slots: void on_pbUnmute_clicked(); void on_pbUnsolo_clicked(); - private: + private: Ui::qmpchannelswindow *ui; + qmppresetselect *pselectw; }; #endif // QMPCHANNELSWINDOW_H |