From 07dc7a0fff041b709debcd46eba86c0bfaef6bd5 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Sat, 5 Jun 2010 00:41:07 +0000 Subject: [PATCH] Fixed outer color chooser enable state depending of parent state and checkbox. svn path=/trunk/KDE/kdebase/workspace/; revision=1134693 --- clients/oxygen/config/oxygenshadowconfigurationui.cpp | 3 ++- clients/oxygen/config/oxygenshadowconfigurationui.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/clients/oxygen/config/oxygenshadowconfigurationui.cpp b/clients/oxygen/config/oxygenshadowconfigurationui.cpp index 88c383556b..7adedf7c10 100644 --- a/clients/oxygen/config/oxygenshadowconfigurationui.cpp +++ b/clients/oxygen/config/oxygenshadowconfigurationui.cpp @@ -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() ) ); diff --git a/clients/oxygen/config/oxygenshadowconfigurationui.h b/clients/oxygen/config/oxygenshadowconfigurationui.h index 3912e4402d..f50ae860c1 100644 --- a/clients/oxygen/config/oxygenshadowconfigurationui.h +++ b/clients/oxygen/config/oxygenshadowconfigurationui.h @@ -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() ); } };