From 685d5b2a4b938bc430ac848608c08bb8c4cd2842 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Thu, 21 Apr 2011 19:14:04 +0200 Subject: [PATCH] cleanup --- clients/oxygen/oxygenclient.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 6d6a5a4699..d26a375a7c 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -143,9 +143,9 @@ namespace Oxygen _configuration = _factory->configuration( *this ); // animations duration - _glowAnimation->setDuration( _configuration.animationsDuration() ); - _titleAnimationData->setDuration( _configuration.animationsDuration() ); - _itemData.animation().data()->setDuration( _configuration.animationsDuration() ); + _glowAnimation->setDuration( configuration().animationsDuration() ); + _titleAnimationData->setDuration( configuration().animationsDuration() ); + _itemData.animation().data()->setDuration( configuration().animationsDuration() ); _itemData.setAnimationsEnabled( useAnimations() ); // reset title transitions @@ -165,7 +165,7 @@ namespace Oxygen _itemData.setDirty( true ); // handle size grip - if( _configuration.drawSizeGrip() ) + if( configuration().drawSizeGrip() ) { if( !hasSizeGrip() ) createSizeGrip(); @@ -595,11 +595,6 @@ namespace Oxygen height -= 3; } - // background pixmap - QPoint backgroundPixmapOffset( layoutMetric( LM_OuterPaddingLeft ) + layoutMetric( LM_BorderLeft ), 0 ); - if( isMaximized() ) backgroundPixmapOffset += QPoint( 0, 3 ); - helper().setBackgroundPixmapOffset( backgroundPixmapOffset ); - const QWidget* window( isPreview() ? this->widget() : widget->window() ); helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height );