forked from qt-creator/qt-creator
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:
@@ -669,12 +669,12 @@ QLinearGradient StyleHelper::statusBarGradient(const QRect &statusBarRect)
|
||||
|
||||
void StyleHelper::setPanelWidget(QWidget *widget, bool value)
|
||||
{
|
||||
widget->setProperty("panelwidget", value);
|
||||
widget->setProperty(C_PANEL_WIDGET, value);
|
||||
}
|
||||
|
||||
void StyleHelper::setPanelWidgetSingleRow(QWidget *widget, bool value)
|
||||
{
|
||||
widget->setProperty("panelwidget_singlerow", value);
|
||||
widget->setProperty(C_PANEL_WIDGET_SINGLE_ROW, value);
|
||||
}
|
||||
|
||||
bool StyleHelper::isQDSTheme()
|
||||
|
||||
Reference in New Issue
Block a user