aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpchannelswindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-21 21:30:10 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-21 21:30:10 +0800
commit7e12992ad284fda2c29e494b3c0d60101592c277 (patch)
tree73de77f1c4ab7ec52b7e492628ebe968bd2553da /qmidiplayer-desktop/qmpchannelswindow.cpp
parent1ec23952dd7c022e11afbb93d93be1bac5c94081 (diff)
downloadQMidiPlayer-7e12992ad284fda2c29e494b3c0d60101592c277.tar.xz
Use QDirIterator instead, fixing plugin loading problems in Windows.
Also scale UI elements.
Diffstat (limited to 'qmidiplayer-desktop/qmpchannelswindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpchannelswindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.cpp b/qmidiplayer-desktop/qmpchannelswindow.cpp
index a692852..ed522a0 100644
--- a/qmidiplayer-desktop/qmpchannelswindow.cpp
+++ b/qmidiplayer-desktop/qmpchannelswindow.cpp
@@ -67,12 +67,12 @@ qmpChannelsWindow::qmpChannelsWindow(QWidget *parent) :
((QDCLabel*)ui->twChannels->cellWidget(i,5))->setID(i);
connect(ui->twChannels->cellWidget(i,5),SIGNAL(onClick(int)),this,SLOT(showChannelEditorWindow(int)));
}
- 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);
+ 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.));
}
void qmpChannelsWindow::showEvent(QShowEvent *event)