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) --- qmpchannelswindow.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'qmpchannelswindow.hpp') diff --git a/qmpchannelswindow.hpp b/qmpchannelswindow.hpp index a594a5a..c87a90f 100644 --- a/qmpchannelswindow.hpp +++ b/qmpchannelswindow.hpp @@ -2,9 +2,11 @@ #define QMPCHANNELSWINDOW_H #include +#include #include #include #include "qmppresetselect.hpp" +#include "qmpchanneleditor.hpp" namespace Ui { class qmpchannelswindow; @@ -24,6 +26,20 @@ class QDCLabel:public QLabel void onDoubleClick(int id); }; +class QDCPushButton:public QPushButton +{ + Q_OBJECT + using QPushButton::QPushButton; + private: + int id; + protected: + void mousePressEvent(QMouseEvent *event){QPushButton::mousePressEvent(event);emit onClick(id);} + public: + void setID(int _id){id=_id;} + signals: + void onClick(int id); +}; + class qmpchannelswindow:public QDialog { Q_OBJECT @@ -38,6 +54,7 @@ class qmpchannelswindow:public QDialog void channelWindowsUpdate(); void channelMSChanged(); void showPresetWindow(int chid); + void showChannelEditorWindow(int chid); private slots: void on_pbUnmute_clicked(); @@ -46,6 +63,7 @@ class qmpchannelswindow:public QDialog private: Ui::qmpchannelswindow *ui; qmppresetselect *pselectw; + qmpchanneleditor *ceditw; }; #endif // QMPCHANNELSWINDOW_H -- cgit v1.2.3