Oxygen connects to the new KDecorationOptions signals
At least to those it is interested in.icc-effect-5.14.5
parent
9797fe2122
commit
69be5b3e25
|
@ -48,6 +48,16 @@ namespace Oxygen
|
|||
{
|
||||
readConfig();
|
||||
setInitialized( true );
|
||||
connect(options(), &KDecorationOptions::colorsChanged, [this]() {
|
||||
_shadowCache.invalidateCaches();
|
||||
});
|
||||
connect(options(), &KDecorationOptions::configChanged, [this]() {
|
||||
// read in the configuration
|
||||
setInitialized( false );
|
||||
readConfig();
|
||||
setInitialized( true );
|
||||
emit recreateDecorations();
|
||||
});
|
||||
}
|
||||
|
||||
//___________________________________________________
|
||||
|
@ -58,21 +68,6 @@ namespace Oxygen
|
|||
KDecoration* Factory::createDecoration(KDecorationBridge* bridge )
|
||||
{ return (new Client( bridge, this ))->decoration(); }
|
||||
|
||||
//___________________________________________________
|
||||
bool Factory::reset(unsigned long changed)
|
||||
{
|
||||
|
||||
if( changed & SettingColors )
|
||||
{ _shadowCache.invalidateCaches(); }
|
||||
|
||||
// read in the configuration
|
||||
setInitialized( false );
|
||||
readConfig();
|
||||
setInitialized( true );
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
//___________________________________________________
|
||||
void Factory::readConfig()
|
||||
{
|
||||
|
|
|
@ -70,9 +70,6 @@ namespace Oxygen
|
|||
//! create decoration
|
||||
virtual KDecoration *createDecoration(KDecorationBridge *b);
|
||||
|
||||
//! configuration reset
|
||||
virtual bool reset(unsigned long changed);
|
||||
|
||||
//! configuration capabilities
|
||||
virtual bool supports( Ability ability ) const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue