Fixed outer color chooser enable state depending of parent state and

checkbox.

svn path=/trunk/KDE/kdebase/workspace/; revision=1134693
This commit is contained in:
Hugo Pereira Da Costa 2010-06-05 00:41:07 +00:00
parent 1ea223f34c
commit 07dc7a0fff
2 changed files with 7 additions and 1 deletions

View file

@ -40,7 +40,8 @@ namespace Oxygen
// connections
ui.outerColor->setEnabled( false );
connect( ui.useOuterColor, SIGNAL( toggled( bool ) ), ui.outerColor, SLOT( setEnabled( bool ) ) );
connect( ui.useOuterColor, SIGNAL( toggled( bool ) ), SLOT( enableOuterColor() ) );
connect( this, SIGNAL( toggled( bool ) ), SLOT( enableOuterColor() ) );
connect( ui.shadowSize, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );
connect( ui.verticalOffset, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );

View file

@ -48,6 +48,11 @@ namespace Oxygen
//! emmitted when configuration is changed
void changed( void );
protected slots:
//! update enable state of outer color chooser
void enableOuterColor( void )
{ ui.outerColor->setEnabled( isChecked() && ui.useOuterColor->isChecked() ); }
};