aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpmainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-11-11 19:35:43 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-11-11 19:39:19 +0800
commitdfc11c56f096b93ec70d0263f134918a5c9323ba (patch)
tree3f4e6d9158d8bc56e981384d33cbe860c07d137a /qmidiplayer-desktop/qmpmainwindow.cpp
parentc597d09df05e4a6e1b3832a0f26ad21ce4c5b8cb (diff)
downloadQMidiPlayer-dfc11c56f096b93ec70d0263f134918a5c9323ba.tar.xz
Don't spam qmpmidioutfluid everywhere.
Also stop using stuff removed from Qt 6 (not yet done).
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.cpp5
1 files changed, 3 insertions, 2 deletions
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 <QFont>
#include <QTextCodec>
#include <QDirIterator>
-#include <QDesktopWidget>
#include <QMessageBox>
#include <QCheckBox>
+#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");
}