From 8dc90ae27c24aec1851215f2cc28ee24eff01ea5 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Tue, 29 Dec 2015 23:54:24 +0800 Subject: Master Spark. (WTF) --- qmpchannelswindow.hpp | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'qmpchannelswindow.hpp') 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 #include #include +#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 -- cgit v1.2.3