Skip to content
Snippets Groups Projects
Commit a4ef65d8 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ditto InstrumentsTreeModel

parent 7fb06281
No related branches found
No related tags found
1 merge request!2059Move code in GUI/View; expose "expand" bit w/o getter and setter; let GroupBoxCollapser take care of boilerplate set and connect statements
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment