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 5225 Lines • ▼ Show 20 Line(s) | 5155 | { | |||
---|---|---|---|---|---|
5226 | return true; | 5226 | return true; | ||
5227 | } | 5227 | } | ||
5228 | 5228 | | |||
5229 | //___________________________________________________________________________________ | 5229 | //___________________________________________________________________________________ | ||
5230 | bool Style::drawShapedFrameControl( const QStyleOption* option, QPainter* painter, const QWidget* widget ) const | 5230 | bool Style::drawShapedFrameControl( const QStyleOption* option, QPainter* painter, const QWidget* widget ) const | ||
5231 | { | 5231 | { | ||
5232 | 5232 | | |||
5233 | // cast option and check | 5233 | // cast option and check | ||
5234 | #if BREEZE_USE_KDE4 | ||||
5234 | const auto frameOpt = qstyleoption_cast<const QStyleOptionFrameV3*>( option ); | 5235 | const auto frameOpt = qstyleoption_cast<const QStyleOptionFrameV3*>( option ); | ||
5236 | #else | ||||
5237 | const auto frameOpt = qstyleoption_cast<const QStyleOptionFrame*>( option ); | ||||
5238 | #endif | ||||
5235 | if( !frameOpt ) return false; | 5239 | if( !frameOpt ) return false; | ||
5236 | 5240 | | |||
5237 | switch( frameOpt->frameShape ) | 5241 | switch( frameOpt->frameShape ) | ||
5238 | { | 5242 | { | ||
5239 | 5243 | | |||
5240 | case QFrame::Box: | 5244 | case QFrame::Box: | ||
5241 | { | 5245 | { | ||
5242 | if( option->state & State_Sunken ) return true; | 5246 | if( option->state & State_Sunken ) return true; | ||
▲ Show 20 Lines • Show All 1923 Lines • Show Last 20 Lines |