diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-01-15 20:36:58 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-01-15 20:36:58 +0800 |
commit | e3a5241953051e97978ac42fa278572ae735abb3 (patch) | |
tree | ddfb72e4dfec592cd1ecc803818e1f50bc5da049 /qmpchannelswindow.hpp | |
parent | 1e1036e705b20ea407bbb922e40c0f44147b3691 (diff) | |
download | QMidiPlayer-e3a5241953051e97978ac42fa278572ae735abb3.tar.xz |
Doll's Phantom. (WTF)0.6.2
Diffstat (limited to 'qmpchannelswindow.hpp')
-rw-r--r-- | qmpchannelswindow.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qmpchannelswindow.hpp b/qmpchannelswindow.hpp index aba2a8d..f0591b6 100644 --- a/qmpchannelswindow.hpp +++ b/qmpchannelswindow.hpp @@ -17,12 +17,12 @@ namespace Ui { class QDCLabel:public QLabel { Q_OBJECT - using QLabel::QLabel; private: int id; protected: void mouseDoubleClickEvent(QMouseEvent *event){event->accept();emit onDoubleClick(id);} public: + QDCLabel(QString s):QLabel(s){id=-1;} void setID(int _id){id=_id;} signals: void onDoubleClick(int id); @@ -31,12 +31,12 @@ class QDCLabel:public QLabel class QDCPushButton:public QPushButton { Q_OBJECT - using QPushButton::QPushButton; private: int id; protected: void mousePressEvent(QMouseEvent *event){QPushButton::mousePressEvent(event);emit onClick(id);} public: + QDCPushButton(QString s):QPushButton(s){id=-1;} void setID(int _id){id=_id;} signals: void onClick(int id); |