Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezestyle.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 3156 Lines • ▼ Show 20 Line(s) | 145 | { | |||
---|---|---|---|---|---|
3157 | bool Style::drawFrameGroupBoxPrimitive( const QStyleOption* option, QPainter* painter, const QWidget* ) const | 3157 | bool Style::drawFrameGroupBoxPrimitive( const QStyleOption* option, QPainter* painter, const QWidget* ) const | ||
3158 | { | 3158 | { | ||
3159 | 3159 | | |||
3160 | // cast option and check | 3160 | // cast option and check | ||
3161 | const auto frameOption( qstyleoption_cast<const QStyleOptionFrame*>( option ) ); | 3161 | const auto frameOption( qstyleoption_cast<const QStyleOptionFrame*>( option ) ); | ||
3162 | if( !frameOption ) return true; | 3162 | if( !frameOption ) return true; | ||
3163 | 3163 | | |||
3164 | // no frame for flat groupboxes | 3164 | // no frame for flat groupboxes | ||
3165 | #if BREEZE_USE_KDE4 | ||||
3165 | QStyleOptionFrameV2 frameOption2( *frameOption ); | 3166 | QStyleOptionFrameV2 frameOption2( *frameOption ); | ||
3166 | if( frameOption2.features & QStyleOptionFrameV2::Flat ) return true; | 3167 | if( frameOption2.features & QStyleOptionFrameV2::Flat ) return true; | ||
3168 | #else | ||||
3169 | if( frameOption->features & QStyleOptionFrame::Flat ) return true; | ||||
3170 | #endif | ||||
3167 | 3171 | | |||
3168 | // normal frame | 3172 | // normal frame | ||
3169 | const auto& palette( option->palette ); | 3173 | const auto& palette( option->palette ); | ||
3170 | const auto background( _helper->frameBackgroundColor( palette ) ); | 3174 | const auto background( _helper->frameBackgroundColor( palette ) ); | ||
3171 | const auto outline( _helper->frameOutlineColor( palette ) ); | 3175 | const auto outline( _helper->frameOutlineColor( palette ) ); | ||
3172 | 3176 | | |||
3173 | /* | 3177 | /* | ||
3174 | * need to reset painter's clip region in order to paint behind textbox label | 3178 | * need to reset painter's clip region in order to paint behind textbox label | ||
▲ Show 20 Lines • Show All 3994 Lines • Show Last 20 Lines |