fixed layout of oxygen decoration config in oxygen-settings

This commit is contained in:
Hugo Pereira Da Costa 2013-10-21 16:59:51 +02:00
parent ce0d2af529
commit b2aad6a693

View file

@ -60,11 +60,13 @@ namespace Oxygen
// configuration
_configuration = KSharedConfig::openConfig( QStringLiteral( "oxygenrc" ) );
// create new configuration widget and add to layout, if any
_configWidget = new ConfigWidget( parent );
if( parent && parent->layout() ) parent->layout()->addWidget( _configWidget );
else _configWidget->show();
load();
connect( _configWidget, SIGNAL(changed(bool)), SLOT(updateChanged()) );
_configWidget->show();
}