aboutsummaryrefslogtreecommitdiff
path: root/qmpchannelswindow.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmpchannelswindow.hpp')
-rw-r--r--qmpchannelswindow.hpp22
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