[oxygen] Use new update mechanism of KDecoration in the Button
This allows to have the button animations working in the preview. Needs to change the reference to Client to non-const.
This commit is contained in:
parent
f03104ac17
commit
47857bb9f3
2 changed files with 3 additions and 2 deletions
|
@ -325,7 +325,8 @@ namespace Oxygen
|
||||||
void Button::parentUpdate( void )
|
void Button::parentUpdate( void )
|
||||||
{
|
{
|
||||||
|
|
||||||
if( _client.compositingActive() && parentWidget() ) parentWidget()->update( geometry().adjusted( -1, -1, 1, 1 ) );
|
if( _client.compositingActive() || _client.isPreview() ) _client.update( geometry().adjusted( -1, -1, 1, 1 ) );
|
||||||
|
else if( parentWidget() ) parentWidget()->update( geometry().adjusted( -1, -1, 1, 1 ) );
|
||||||
else this->update();
|
else this->update();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,7 @@ namespace Oxygen
|
||||||
private:
|
private:
|
||||||
|
|
||||||
//! parent client
|
//! parent client
|
||||||
const Client &_client;
|
Client &_client;
|
||||||
|
|
||||||
//! helper
|
//! helper
|
||||||
DecoHelper &_helper;
|
DecoHelper &_helper;
|
||||||
|
|
Loading…
Reference in a new issue