implemented argumentless load and save slots.

This commit is contained in:
Hugo Pereira Da Costa 2012-11-27 18:55:14 +01:00
parent 9fb4194209
commit c32a73902c
2 changed files with 16 additions and 6 deletions

View file

@ -68,7 +68,7 @@ namespace Oxygen
_configWidget = new ConfigWidget( parent );
load( KConfigGroup() );
load();
connect( _configWidget, SIGNAL( changed( bool ) ), SLOT(updateChanged()) );
_configWidget->show();
@ -83,7 +83,7 @@ namespace Oxygen
{ _configWidget->toggleExpertMode( value ); }
//_______________________________________________________________________
void Config::load( const KConfigGroup& )
void Config::load( void )
{
// load standard configuration
@ -121,7 +121,7 @@ namespace Oxygen
}
//_______________________________________________________________________
void Config::save( KConfigGroup& )
void Config::save( void )
{
// create configuration from group
@ -152,7 +152,7 @@ namespace Oxygen
}
//_______________________________________________________________________
void Config::defaults()
void Config::defaults( void )
{
// install default configuration

View file

@ -66,10 +66,20 @@ namespace Oxygen {
public slots:
//! load configuration
void load( const KConfigGroup& );
/*! although kconfiggroup argument is not used. It is required by KWin API */
void load( const KConfigGroup& )
{ load(); }
//! save configuration
void save( KConfigGroup& );
/*! although kconfiggroup argument is not used. It is required by KWin API */
void save( KConfigGroup& )
{ save(); }
//! load configuration
void load( void );
//! save configuration
void save( void );
//! restore defaults
void defaults( void );