{
void drawComplexControl
(
ComplexControl control,
) const
{
switch(control)
{
case CC_GroupBox:
if( widget != 0 )
{
groupBox
->textColor
= QColor(255,
255,
255);
QWindowsStyle::drawComplexControl( control, groupBox, painter, widget
);
}
else
{
QWindowsStyle::drawComplexControl( control, option, painter, widget
);
}
break; // end case CC_GroupBox
default:
QWindowsStyle::drawComplexControl( control, option, painter, widget
);
}
}
};
class MyWindowsStyle : public QWindowsStyle
{
void drawComplexControl
(
ComplexControl control,
const QStyleOptionComplex * option,
QPainter * painter,
const QWidget * widget = 0
) const
{
switch(control)
{
case CC_GroupBox:
if( widget != 0 )
{
QStyleOptionGroupBox *groupBox = new QStyleOptionGroupBox(*(qstyleoption_cast<const QStyleOptionGroupBox*>(option)) );
groupBox->textColor = QColor(255, 255, 255);
QWindowsStyle::drawComplexControl( control, groupBox, painter, widget );
}
else
{
QWindowsStyle::drawComplexControl( control, option, painter, widget );
}
break; // end case CC_GroupBox
default:
QWindowsStyle::drawComplexControl( control, option, painter, widget );
}
}
};
To copy to clipboard, switch view to plain text mode
Bookmarks