diff options
author | Alessandro Portale <[email protected]> | 2023-04-21 22:10:24 +0200 |
---|---|---|
committer | Alessandro Portale <[email protected]> | 2023-04-26 09:23:29 +0000 |
commit | 382168364785582763d68afc64c832858e87b833 (patch) | |
tree | 63816c3a66a9183650ed1aff8b716e95a6fbf920 /src/plugins/qmlprofiler/qmlprofilertool.cpp | |
parent | 963ae0a1927f80347cc643f46e60d3e5a1304008 (diff) |
StyleHelper: Add setter for "panelwidget[_singlerow]"
20 string duplications warrant a centralized setter. A couple more of
them will come with the upcoming toolbar changes.
Change-Id: Ide8c680da21d5be09f968bcc0a774e062c6f0260
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertool.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index dc33663e895..a82b6d74e0e 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -49,6 +49,7 @@ #include <utils/fancymainwindow.h> #include <utils/fileinprojectfinder.h> #include <utils/qtcassert.h> +#include <utils/stylehelper.h> #include <utils/url.h> #include <utils/utilsicons.h> @@ -197,7 +198,7 @@ QmlProfilerTool::QmlProfilerTool() this, &QmlProfilerTool::toggleVisibleFeature); d->m_timeLabel = new QLabel(); - d->m_timeLabel->setProperty("panelwidget", true); + StyleHelper::setPanelWidget(d->m_timeLabel); d->m_timeLabel->setIndent(10); updateTimeDisplay(); connect(d->m_timeLabel, &QObject::destroyed, &d->m_recordingTimer, &QTimer::stop); |