Utils: Centralize style-related property names as constants

This introduces string constants in Utils::StyleHelper. They are used by
code all over in Qt Creator to tell ManhattanStyle how to paint certain
widgets.

Change-Id: Iecca36103f80084cd5fe93fcb6b18b8fbb3a32bb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Alessandro Portale
2023-05-09 13:20:04 +02:00
parent 6865635442
commit 5975657e77
30 changed files with 112 additions and 67 deletions

View File

@@ -26,6 +26,7 @@
#include <utils/algorithm.h>
#include <utils/link.h>
#include <utils/progressindicator.h>
#include <utils/stylehelper.h>
#include <utils/utilsicons.h>
#include <QAction>
@@ -192,7 +193,7 @@ QList<QToolButton *> TestNavigationWidget::createToolButtons()
m_filterButton = new QToolButton(m_view);
m_filterButton->setIcon(Utils::Icons::FILTER.icon());
m_filterButton->setToolTip(Tr::tr("Filter Test Tree"));
m_filterButton->setProperty("noArrow", true);
m_filterButton->setProperty(StyleHelper::C_NO_ARROW, true);
m_filterButton->setPopupMode(QToolButton::InstantPopup);
m_filterMenu = new QMenu(m_filterButton);
initializeFilterMenu();