forked from openkylin/qt5-ukui-platformtheme
同步 去掉对外接口的ukui_
This commit is contained in:
parent
3c843adefb
commit
dfd7a0863f
|
@ -897,6 +897,7 @@ void UKUIConfigStyleParameters::initConfigPushButtonBevelParameters(bool isDark,
|
|||
checkDisableBrush = option->palette.brush(QPalette::Disabled, QPalette::NoRole);
|
||||
|
||||
auto *w = const_cast<QWidget *>(widget);
|
||||
|
||||
if (w) {
|
||||
w->setProperty("radius", radius);
|
||||
w->setProperty("defaultBrush", defaultBrush);
|
||||
|
@ -1065,7 +1066,7 @@ void UKUIConfigStyleParameters::initConfigPushButtonLabelParameters(bool isDark,
|
|||
}
|
||||
|
||||
auto *w = const_cast<QWidget *>(widget);
|
||||
if(w){
|
||||
if (w) {
|
||||
w->setProperty("iconHighlight", iconHighlight);
|
||||
w->setProperty("textHighlight", textHighlight);
|
||||
w->setProperty("textColor", textColor);
|
||||
|
@ -1324,7 +1325,7 @@ void UKUIConfigStyleParameters::initConfigToolButtonPanelParameters(bool isDark,
|
|||
checkDisableBrush = option->palette.brush(QPalette::Disabled, QPalette::NoRole);
|
||||
|
||||
auto *w = const_cast<QWidget *>(widget);
|
||||
if(w){
|
||||
if (w) {
|
||||
w->setProperty("radius", radius);
|
||||
w->setProperty("defaultBrush", defaultBrush);
|
||||
w->setProperty("clickBrush", clickBrush);
|
||||
|
@ -1332,7 +1333,7 @@ void UKUIConfigStyleParameters::initConfigToolButtonPanelParameters(bool isDark,
|
|||
w->setProperty("disableBrush", disableBrush);
|
||||
w->setProperty("checkBrush", checkBrush);
|
||||
w->setProperty("checkHoverBrush", checkHoverBrush);
|
||||
w->setProperty("_checkClickBrush", checkClickBrush);
|
||||
w->setProperty("checkClickBrush", checkClickBrush);
|
||||
w->setProperty("checkDisableBrush", checkDisableBrush);
|
||||
w->setProperty("defaultPen", defaultPen);
|
||||
w->setProperty("clickPen", clickPen);
|
||||
|
@ -1611,7 +1612,7 @@ void UKUIConfigStyleParameters::initConfigLineEditParameters(bool isDark, const
|
|||
}
|
||||
|
||||
auto *w = const_cast<QWidget *>(widget);
|
||||
if(w){
|
||||
if (w) {
|
||||
w->setProperty("radius", radius);
|
||||
w->setProperty("defaultBrush", defaultBrush);
|
||||
w->setProperty("focusBrush", focusBrush);
|
||||
|
@ -2175,18 +2176,18 @@ void UKUIConfigStyleParameters::initConfigComboBoxParameters(bool isDark, const
|
|||
}
|
||||
|
||||
auto *w = const_cast<QWidget *>(widget);
|
||||
if(w){
|
||||
if (w) {
|
||||
w->setProperty("radius", radius);
|
||||
w->setProperty("defaultBrush", defaultBrush);
|
||||
w->setProperty("onBrush", onBrush);
|
||||
w->setProperty("hoverBrush", hoverBrush);
|
||||
w->setProperty("disableBrush", disableBrush);
|
||||
w->setProperty("editBrush", editBrush);
|
||||
w->setProperty("defaultPen", defaultPen);
|
||||
w->setProperty("hoverPen", hoverPen);
|
||||
w->setProperty("disablePen", disablePen);
|
||||
w->setProperty("onPen", onPen);
|
||||
w->setProperty("editPen", editPen);
|
||||
w->setProperty("defaultBrush", defaultBrush);
|
||||
w->setProperty("onBrush", onBrush);
|
||||
w->setProperty("hoverBrush", hoverBrush);
|
||||
w->setProperty("disableBrush", disableBrush);
|
||||
w->setProperty("editBrush", editBrush);
|
||||
w->setProperty("defaultPen", defaultPen);
|
||||
w->setProperty("hoverPen", hoverPen);
|
||||
w->setProperty("disablePen", disablePen);
|
||||
w->setProperty("onPen", onPen);
|
||||
w->setProperty("editPen", editPen);
|
||||
}
|
||||
|
||||
if (widget) {
|
||||
|
@ -3560,7 +3561,7 @@ void UKUIConfigStyleParameters::initConfigProgressBarParameters(bool isDark, con
|
|||
}
|
||||
|
||||
auto *w = const_cast<QWidget *>(widget);
|
||||
if(w){
|
||||
if (w) {
|
||||
w->setProperty("radius", radius);
|
||||
w->setProperty("contentPen", contentPen);
|
||||
w->setProperty("grooveDefaultPen", grooveDefaultPen);
|
||||
|
|
Loading…
Reference in New Issue