diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-27 23:59:07 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-27 23:59:07 +0800 |
commit | 4674800f32acfe2c8ffd04215a51dea8b9380396 (patch) | |
tree | 5880eef4d859567008b9b50592d9549c849525d4 /qmidiplayer-desktop | |
parent | 8ca2465f318d8205a5968c9daf4b95511a8c998b (diff) | |
download | QMidiPlayer-4674800f32acfe2c8ffd04215a51dea8b9380396.tar.xz |
Compute coordinates of pitch-bent notes more precisely.
Also load resources from system-wide folder.
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r-- | qmidiplayer-desktop/qmppresetselect.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmppresetselect.cpp b/qmidiplayer-desktop/qmppresetselect.cpp index 2edb522..4c9148c 100644 --- a/qmidiplayer-desktop/qmppresetselect.cpp +++ b/qmidiplayer-desktop/qmppresetselect.cpp @@ -8,6 +8,8 @@ qmpPresetSelector::qmpPresetSelector(QWidget *parent) : ui(new Ui::qmpPresetSelector) { 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); } qmpPresetSelector::~qmpPresetSelector() |