minor code cleanup.

This commit is contained in:
Hugo Pereira Da Costa 2011-07-18 10:21:17 +02:00
parent 43cae07762
commit 3637caf68c
2 changed files with 2 additions and 2 deletions

View file

@ -158,7 +158,6 @@ namespace Oxygen
configuration.setUseOxygenShadows( ui->shadowConfigurations[0]->isChecked() ); configuration.setUseOxygenShadows( ui->shadowConfigurations[0]->isChecked() );
configuration.setUseNarrowButtonSpacing( ui->ui.narrowButtonSpacing->isChecked() ); configuration.setUseNarrowButtonSpacing( ui->ui.narrowButtonSpacing->isChecked() );
// save into configuration
if( ui->expertMode() ) if( ui->expertMode() )
{ {
@ -171,6 +170,7 @@ namespace Oxygen
configuration.setAnimationsEnabled( ui->ui.animationsEnabled->isChecked() ); configuration.setAnimationsEnabled( ui->ui.animationsEnabled->isChecked() );
} }
// save standard configuration // save standard configuration
KConfigGroup configurationGroup( _configuration, "Windeco"); KConfigGroup configurationGroup( _configuration, "Windeco");
configurationGroup.deleteGroup(); configurationGroup.deleteGroup();

View file

@ -106,7 +106,6 @@ namespace Oxygen
connect( ui.blendColor, SIGNAL(currentIndexChanged(int)), SIGNAL(changed()) ); connect( ui.blendColor, SIGNAL(currentIndexChanged(int)), SIGNAL(changed()) );
connect( ui.sizeGripMode, SIGNAL(currentIndexChanged(int)), SIGNAL(changed()) ); connect( ui.sizeGripMode, SIGNAL(currentIndexChanged(int)), SIGNAL(changed()) );
connect( ui.animationsEnabled, SIGNAL(clicked()), SIGNAL(changed()) );
connect( ui.narrowButtonSpacing, SIGNAL(clicked()), SIGNAL(changed()) ); connect( ui.narrowButtonSpacing, SIGNAL(clicked()), SIGNAL(changed()) );
connect( ui.separatorMode, SIGNAL(currentIndexChanged(int)), SIGNAL(changed()) ); connect( ui.separatorMode, SIGNAL(currentIndexChanged(int)), SIGNAL(changed()) );
connect( ui.titleOutline, SIGNAL(clicked()), SIGNAL(changed()) ); connect( ui.titleOutline, SIGNAL(clicked()), SIGNAL(changed()) );
@ -117,6 +116,7 @@ namespace Oxygen
ui._expertModeButton->setIcon( KIcon("configure") ); ui._expertModeButton->setIcon( KIcon("configure") );
// animation config widget // animation config widget
connect( ui.animationsEnabled, SIGNAL(clicked()), SIGNAL(changed()) );
_animationConfigWidget = new AnimationConfigWidget(); _animationConfigWidget = new AnimationConfigWidget();
_animationConfigWidget->installEventFilter( this ); _animationConfigWidget->installEventFilter( this );
connect( _animationConfigWidget, SIGNAL( changed( bool ) ), SIGNAL( changed( void ) ) ); connect( _animationConfigWidget, SIGNAL( changed( bool ) ), SIGNAL( changed( void ) ) );