diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-03-13 17:53:46 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-03-13 17:53:46 +0800 |
commit | cf15fde2aa2bcbb244fdfdc46debf457451079f7 (patch) | |
tree | 3d63d296f0fbd45fcd128b1c8006cb8de5bc4353 /qmidiplayer-desktop/qmpchannelswindow.cpp | |
parent | fb5c0155fdff917a1f1816c7afbf00a076c54156 (diff) | |
download | QMidiPlayer-cf15fde2aa2bcbb244fdfdc46debf457451079f7.tar.xz |
Set preset bank correctly in XG mode.
Removed High DPI handling code. Good luck to Windows users out there.
Skulpture style: dials are no longer blurred if scaled.
Diffstat (limited to 'qmidiplayer-desktop/qmpchannelswindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpchannelswindow.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.cpp b/qmidiplayer-desktop/qmpchannelswindow.cpp index 87eae10..6b1b8b4 100644 --- a/qmidiplayer-desktop/qmpchannelswindow.cpp +++ b/qmidiplayer-desktop/qmpchannelswindow.cpp @@ -11,8 +11,6 @@ qmpChannelsWindow::qmpChannelsWindow(QWidget *parent) : ui(new Ui::qmpChannelsWindow) { ui->setupUi(this); - int w=size().width(),h=size().height();w=w*(logicalDpiX()/96.);h=h*(logicalDpiY()/96.); - setMaximumWidth(w);setMaximumHeight(h);setMinimumWidth(w);setMinimumHeight(h); pselectw=new qmpPresetSelector(this); ceditw=new qmpChannelEditor(this); cha=new QIcon(":/img/ledon.svg");chi=new QIcon(":/img/ledoff.svg"); @@ -67,12 +65,12 @@ qmpChannelsWindow::qmpChannelsWindow(QWidget *parent) : connect(ui->twChannels->cellWidget(i,5),SIGNAL(onClick(int)),this,SLOT(showChannelEditorWindow(int))); } connect(ui->twChannels,SIGNAL(cellDoubleClicked(int,int)),this,SLOT(showPresetWindow(int,int))); - ui->twChannels->setColumnWidth(0,24*(logicalDpiX()/96.)); - ui->twChannels->setColumnWidth(1,24*(logicalDpiX()/96.)); - ui->twChannels->setColumnWidth(2,24*(logicalDpiX()/96.)); - ui->twChannels->setColumnWidth(3,192*(logicalDpiX()/96.)); - ui->twChannels->setColumnWidth(4,208*(logicalDpiX()/96.)); - ui->twChannels->setColumnWidth(5,32*(logicalDpiX()/96.)); + ui->twChannels->setColumnWidth(0,24); + ui->twChannels->setColumnWidth(1,24); + ui->twChannels->setColumnWidth(2,24); + ui->twChannels->setColumnWidth(3,192); + ui->twChannels->setColumnWidth(4,208); + ui->twChannels->setColumnWidth(5,32); qmpMainWindow::getInstance()->registerFunctionality( chnlf=new qmpChannelFunc(this), std::string("Channel"), |