From c0d53cf1f868a38ffb7681b7904348d69fb6b5c9 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 18 Oct 2017 13:11:42 +0800 Subject: Fix inconsistency and build errors. --- qmidiplayer-desktop/qmpmainwindow.cpp | 1 + qmidiplayer-desktop/qmpmainwindow.ui | 26 ++++++++++++++++---------- qmidiplayer-desktop/qmpplugin.cpp | 2 +- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp index dbec402..558f827 100644 --- a/qmidiplayer-desktop/qmpmainwindow.cpp +++ b/qmidiplayer-desktop/qmpmainwindow.cpp @@ -675,6 +675,7 @@ void qmpMainWindow::setupWidget() } else setButtonWidth(pb,32); + pb->setIconSize(QSize(16,16)); ui->buttonwidget->layout()->addWidget(pb); mfunc[enabled_buttons[i]].setAssignedControl(pb); connect(pb,SIGNAL(onClick(std::string)),this,SLOT(funcReflector(std::string))); diff --git a/qmidiplayer-desktop/qmpmainwindow.ui b/qmidiplayer-desktop/qmpmainwindow.ui index e2522d6..3177703 100644 --- a/qmidiplayer-desktop/qmpmainwindow.ui +++ b/qmidiplayer-desktop/qmpmainwindow.ui @@ -321,8 +321,8 @@ QSlider{height:10px;} - 32 - 32 + 24 + 24 @@ -356,8 +356,8 @@ QSlider{height:10px;} - 32 - 32 + 24 + 24 @@ -391,8 +391,8 @@ QSlider{height:10px;} - 32 - 32 + 24 + 24 @@ -426,8 +426,8 @@ QSlider{height:10px;} - 32 - 32 + 24 + 24 @@ -475,6 +475,12 @@ QSlider{height:10px;} :/img/open.svg:/img/open.svg + + + 24 + 24 + + @@ -506,8 +512,8 @@ QSlider{height:10px;} - 32 - 32 + 24 + 24 diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp index 4c0ee7c..7ef31f3 100644 --- a/qmidiplayer-desktop/qmpplugin.cpp +++ b/qmidiplayer-desktop/qmpplugin.cpp @@ -17,7 +17,7 @@ qmpSettingsWindow* qsw; #include std::string wstr2str(std::wstring s) { - std::wstring_convert,wchat_t> wsc; + std::wstring_convert,wchar_t> wsc; return wsc.to_bytes(s); } void qmpPluginManager::scanPlugins() -- cgit v1.2.3