aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpchannelswindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-10-02 23:08:08 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-10-02 23:08:08 +0800
commit11bda15b5ecb608686718a8180ff33ff37c673f3 (patch)
treeceb11877bb33b3d3fc7a68c1bfc678c3aa50949f /qmidiplayer-desktop/qmpchannelswindow.hpp
parenta25823bbc28bfb93f1330d7421bd2589c01386c1 (diff)
downloadQMidiPlayer-11bda15b5ecb608686718a8180ff33ff37c673f3.tar.xz
Fixed layout with Qt 5.11.0.8.6_fluidsynth-1.x_final
Minor code cleanups in qmpchannelswindow. Documentation update.
Diffstat (limited to 'qmidiplayer-desktop/qmpchannelswindow.hpp')
-rw-r--r--qmidiplayer-desktop/qmpchannelswindow.hpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.hpp b/qmidiplayer-desktop/qmpchannelswindow.hpp
index 008598c..9ff0cd0 100644
--- a/qmidiplayer-desktop/qmpchannelswindow.hpp
+++ b/qmidiplayer-desktop/qmpchannelswindow.hpp
@@ -17,20 +17,6 @@ namespace Ui {
class qmpChannelsWindow;
}
-class QDCLabel:public QLabel
-{
- Q_OBJECT
- 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);
-};
-
class QDCPushButton:public QPushButton
{
Q_OBJECT
@@ -41,6 +27,7 @@ class QDCPushButton:public QPushButton
public:
QDCPushButton(QString s):QPushButton(s){id=-1;}
void setID(int _id){id=_id;}
+ QSize sizeHint()const{return QSize();}
signals:
void onClick(int id);
};
@@ -53,6 +40,8 @@ class QDCComboBox:public QComboBox
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:
@@ -95,7 +84,7 @@ class qmpChannelsWindow:public QWidget
void channelWindowsUpdate();
void updateChannelActivity();
void channelMSChanged();
- void showPresetWindow(int chid);
+ void showPresetWindow(int chid,int col);
void showChannelEditorWindow(int chid);
void changeMidiMapping(int chid,int idx);
void on_pbUnmute_clicked();