aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplistwindow.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/qmpplistwindow.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/qmpplistwindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpplistwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpplistwindow.cpp b/qmidiplayer-desktop/qmpplistwindow.cpp
index d315d80..e8fc9d8 100644
--- a/qmidiplayer-desktop/qmpplistwindow.cpp
+++ b/qmidiplayer-desktop/qmpplistwindow.cpp
@@ -9,6 +9,7 @@
#include "qmpplistwindow.hpp"
#include "ui_qmpplistwindow.h"
#include "qmpmainwindow.hpp"
+#define setButtonHeight(x,h) {x->setMaximumHeight(h*(logicalDpiY()/96.));x->setMinimumHeight(h*(logicalDpiY()/96.));}
qmpPlistWindow::qmpPlistWindow(QWidget *parent) :
QDialog(parent),
@@ -17,6 +18,10 @@ qmpPlistWindow::qmpPlistWindow(QWidget *parent) :
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);
+ setButtonHeight(ui->pbAdd,36);setButtonHeight(ui->pbAddFolder,36);
+ setButtonHeight(ui->pbClear,36);setButtonHeight(ui->pbLoad,36);
+ setButtonHeight(ui->pbRemove,36);setButtonHeight(ui->pbRepeat,36);
+ setButtonHeight(ui->pbSave,36);setButtonHeight(ui->pbShuffle,36);
connect(this,SIGNAL(dialogClosing()),parent,SLOT(dialogClosed()));
connect(this,SIGNAL(selectionChanging()),parent,SLOT(selectionChanged()));
repeat=0;shuffle=0;