diff --git a/kstyle/breeze.kcfg b/kstyle/breeze.kcfg index c3cafeff..0be30641 100644 --- a/kstyle/breeze.kcfg +++ b/kstyle/breeze.kcfg @@ -129,16 +129,6 @@ 12 - - - - - - - - LS_TOPLEFT - - false diff --git a/kstyle/breezehelper.cpp b/kstyle/breezehelper.cpp index a8d72762..8b195e4f 100644 --- a/kstyle/breezehelper.cpp +++ b/kstyle/breezehelper.cpp @@ -1366,15 +1366,7 @@ namespace Breeze //______________________________________________________________________________ QRectF Helper::shadowRect( const QRectF& rect ) const - { - switch( StyleConfigData::lightSource() ) - { - case StyleConfigData::LS_TOP: return rect.adjusted( 0.5, 0.5, -0.5, -0.5 ).translated( 0, 0.5 ); - case StyleConfigData::LS_TOPLEFT: return rect.adjusted( 0.5, 0.5, -0.5, -0.5 ).translated( 0.5, 0.5 ); - case StyleConfigData::LS_TOPRIGHT: return rect.adjusted( 0.5, 0.5, -0.5, -0.5 ).translated( -0.5, 0.5 ); - default: return rect; - } - } + { return rect.adjusted( 0.5, 0.5, -0.5, -0.5 ).translated( 0.5, 0.5 ); } //______________________________________________________________________________ QPainterPath Helper::roundedPath( const QRectF& rect, Corners corners, qreal radius ) const diff --git a/kstyle/breezemdiwindowshadow.cpp b/kstyle/breezemdiwindowshadow.cpp index 95a96fa0..c8466ba0 100644 --- a/kstyle/breezemdiwindowshadow.cpp +++ b/kstyle/breezemdiwindowshadow.cpp @@ -37,29 +37,10 @@ namespace Breeze if( !_widget ) return; const int size( Metrics::Shadow_Size - Metrics::Shadow_Overlap ); - int topSize( size - Metrics::Shadow_Offset ); - int bottomSize( size ); - int rightSize( 0 ); - int leftSize( 0 ); - - switch( StyleConfigData::lightSource() ) - { - case StyleConfigData::LS_TOPLEFT: - leftSize = size - Metrics::Shadow_Offset; - rightSize = size; - break; - - case StyleConfigData::LS_TOPRIGHT: - rightSize = size - Metrics::Shadow_Offset; - leftSize = size; - break; - - case StyleConfigData::LS_TOP: - leftSize = size - Metrics::Shadow_Offset/2; - rightSize = size - Metrics::Shadow_Offset/2; - break; - - } + const int topSize( size - Metrics::Shadow_Offset ); + const int bottomSize( size ); + const int leftSize( size - Metrics::Shadow_Offset ); + const int rightSize( size ); // get tileSet rect _shadowTilesRect = _widget->frameGeometry().adjusted( -leftSize, -topSize, rightSize, bottomSize ); diff --git a/kstyle/breezeshadowhelper.cpp b/kstyle/breezeshadowhelper.cpp index f6cd676a..45f11f69 100644 --- a/kstyle/breezeshadowhelper.cpp +++ b/kstyle/breezeshadowhelper.cpp @@ -397,27 +397,8 @@ namespace Breeze int size( Metrics::Shadow_Size - Metrics::Shadow_Overlap ); int topSize = ( size - Metrics::Shadow_Offset ) * devicePixelRatio; int bottomSize = size * devicePixelRatio; - int rightSize(0); - int leftSize(0); - - switch( StyleConfigData::lightSource() ) - { - case StyleConfigData::LS_TOPLEFT: - leftSize = (size - Metrics::Shadow_Offset) * devicePixelRatio; - rightSize = size * devicePixelRatio; - break; - - case StyleConfigData::LS_TOPRIGHT: - rightSize = (size - Metrics::Shadow_Offset) * devicePixelRatio; - leftSize = size * devicePixelRatio; - break; - - case StyleConfigData::LS_TOP: - leftSize = (size - Metrics::Shadow_Offset/2) * devicePixelRatio; - rightSize = (size - Metrics::Shadow_Offset/2) * devicePixelRatio; - break; - - } + const int leftSize( (size - Metrics::Shadow_Offset) * devicePixelRatio ); + const int rightSize( size * devicePixelRatio ); if( widget->inherits( "QBalloonTip" ) ) {