diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-02-11 12:24:27 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-02-11 12:13:22 +0000 |
commit | 8789c5ab710f6b70384056415c9f8b1961c4a942 (patch) | |
tree | f0c6c9b744783188401bdf82670bb832364c9fe4 /src/plugins/qmlprofiler/qmlprofilertool.cpp | |
parent | f6dcc90a6f00672221898a191ccdd30f4d19ac15 (diff) |
QmlProfiler, PerfProfiler: Properly style panel widgets
We need to set the "panelwidget" property for the foreground color to be
set. Now that we do this correctly we don't need to hack around in the
palette anymore in QmlProfiler.
Change-Id: Icdc737e1c74d16ec76a12dbbdf6f8f64062bd19c
Fixes: QTCREATORBUG-21961
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertool.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertool.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index 1196429d7dc..3ea47f86386 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -213,9 +213,7 @@ QmlProfilerTool::QmlProfilerTool() this, &QmlProfilerTool::toggleVisibleFeature); d->m_timeLabel = new QLabel(); - QPalette palette; - palette.setColor(QPalette::WindowText, Qt::white); - d->m_timeLabel->setPalette(palette); + d->m_timeLabel->setProperty("panelwidget", true); d->m_timeLabel->setIndent(10); updateTimeDisplay(); connect(d->m_timeLabel, &QObject::destroyed, &d->m_recordingTimer, &QTimer::stop); |