aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpchannelswindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-09-16 00:53:06 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-09-16 00:53:06 +0800
commitc944d7279bd3745f3391c56dc1dbc5e02f26c425 (patch)
treed96db563d7afb263faad5579286b025a5b4f0318 /qmidiplayer-desktop/qmpchannelswindow.hpp
parent9fecb429a37bcaa577aaa972139f6db3ce17ac50 (diff)
downloadQMidiPlayer-c944d7279bd3745f3391c56dc1dbc5e02f26c425.tar.xz
Use QCommandLineParser to parse arguments.
New argument for loading plugins from given files. Use functor whenever possible in QObject::connect. A little bit of code cleanups.
Diffstat (limited to 'qmidiplayer-desktop/qmpchannelswindow.hpp')
-rw-r--r--qmidiplayer-desktop/qmpchannelswindow.hpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.hpp b/qmidiplayer-desktop/qmpchannelswindow.hpp
index ab3227f..93742a2 100644
--- a/qmidiplayer-desktop/qmpchannelswindow.hpp
+++ b/qmidiplayer-desktop/qmpchannelswindow.hpp
@@ -19,37 +19,6 @@ namespace Ui {
class qmpChannelsWindow;
}
-class QDCPushButton:public QPushButton
-{
- Q_OBJECT
- 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;}
- QSize sizeHint()const{return QSize();}
- signals:
- void onClick(int id);
-};
-
-class QDCComboBox:public QComboBox
-{
- Q_OBJECT
- private:
- int id;
- public:
- QDCComboBox():QComboBox(){id=-1;connect(this,SIGNAL(currentIndexChanged(int)),this,SLOT(indexChangedSlot(int)));}
- void setID(int _id){id=_id;}
- QSize sizeHint()const{return QSize();}
- QSize minimumSizeHint()const{return QSize();}
- signals:
- void onChange(int id,int idx);
- public slots:
- void indexChangedSlot(int idx){emit(onChange(id,idx));}
-};
-
class qmpChannelsWindow;
class qmpChannelFunc:public qmpFuncBaseIntf