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:
parent
1ea223f34c
commit
07dc7a0fff
2 changed files with 7 additions and 1 deletions
|
@ -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() ) );
|
||||
|
|
|
@ -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() ); }
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue