From dfc11c56f096b93ec70d0263f134918a5c9323ba Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 11 Nov 2020 19:35:43 +0800 Subject: Don't spam qmpmidioutfluid everywhere. Also stop using stuff removed from Qt 6 (not yet done). --- qmidiplayer-desktop/qmpmainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp') diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp index ac1d939..69a0ba9 100644 --- a/qmidiplayer-desktop/qmpmainwindow.cpp +++ b/qmidiplayer-desktop/qmpmainwindow.cpp @@ -7,9 +7,10 @@ #include #include #include -#include #include #include +#include "qmpmidioutfluid.hpp" +#include "qmpmidiplay.hpp" #include "qmpmainwindow.hpp" #include "ui_qmpmainwindow.h" #define setButtonHeight(x,h) {x->setMaximumHeight(h*(logicalDpiY()/96.));x->setMinimumHeight(h*(logicalDpiY()/96.));} @@ -778,7 +779,7 @@ bool qmpMainWindow::isDarkTheme() { if (!settings->getOptionEnumInt("Behavior/IconTheme")) { - return ui->centralWidget->palette().color(QPalette::Background).lightness() < 128; + return ui->centralWidget->palette().color(QPalette::Window).lightness() < 128; } else return 2 - settings->getOptionEnumInt("Behavior/IconTheme"); } -- cgit v1.2.3