cleanup
This commit is contained in:
parent
5a29c0b21b
commit
685d5b2a4b
1 changed files with 4 additions and 9 deletions
|
@ -143,9 +143,9 @@ namespace Oxygen
|
||||||
_configuration = _factory->configuration( *this );
|
_configuration = _factory->configuration( *this );
|
||||||
|
|
||||||
// animations duration
|
// animations duration
|
||||||
_glowAnimation->setDuration( _configuration.animationsDuration() );
|
_glowAnimation->setDuration( configuration().animationsDuration() );
|
||||||
_titleAnimationData->setDuration( _configuration.animationsDuration() );
|
_titleAnimationData->setDuration( configuration().animationsDuration() );
|
||||||
_itemData.animation().data()->setDuration( _configuration.animationsDuration() );
|
_itemData.animation().data()->setDuration( configuration().animationsDuration() );
|
||||||
_itemData.setAnimationsEnabled( useAnimations() );
|
_itemData.setAnimationsEnabled( useAnimations() );
|
||||||
|
|
||||||
// reset title transitions
|
// reset title transitions
|
||||||
|
@ -165,7 +165,7 @@ namespace Oxygen
|
||||||
_itemData.setDirty( true );
|
_itemData.setDirty( true );
|
||||||
|
|
||||||
// handle size grip
|
// handle size grip
|
||||||
if( _configuration.drawSizeGrip() )
|
if( configuration().drawSizeGrip() )
|
||||||
{
|
{
|
||||||
|
|
||||||
if( !hasSizeGrip() ) createSizeGrip();
|
if( !hasSizeGrip() ) createSizeGrip();
|
||||||
|
@ -595,11 +595,6 @@ namespace Oxygen
|
||||||
height -= 3;
|
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() );
|
const QWidget* window( isPreview() ? this->widget() : widget->window() );
|
||||||
helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height );
|
helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue