From a4ef65d8e4a35af3dadbd222ddc956227535ac91 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Fri, 27 Oct 2023 13:01:13 +0200 Subject: [PATCH] ditto InstrumentsTreeModel --- GUI/View/Instrument/InstrumentsTreeModel.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/GUI/View/Instrument/InstrumentsTreeModel.cpp b/GUI/View/Instrument/InstrumentsTreeModel.cpp index 2f919f204f4..9bbdbba7814 100644 --- a/GUI/View/Instrument/InstrumentsTreeModel.cpp +++ b/GUI/View/Instrument/InstrumentsTreeModel.cpp @@ -16,7 +16,6 @@ #include "Base/Util/Assert.h" #include "GUI/Model/Device/InstrumentItems.h" #include "GUI/Model/Device/InstrumentModel.h" -#include "GUI/Support/Style/ApplicationSettings.h" #include <QApplication> #include <QtGui> @@ -201,10 +200,10 @@ QVariant InstrumentsTreeModel::data(const QModelIndex& index, int role) const return QVariant(Qt::AlignLeft | Qt::AlignVCenter); case Qt::BackgroundRole: - return appSettings->styleSheetPalette().color(QPalette::Base); + return qApp->palette().color(QPalette::Base); case Qt::ForegroundRole: - return appSettings->styleSheetPalette().color(QPalette::Text); + return qApp->palette().color(QPalette::Text); default: return QVariant(); -- GitLab