also initialize animation and opacity for standalone buttons

CCMAIL: mgraesslin@kde.org
wilder-pre-rebase
Hugo Pereira Da Costa 11 years ago
parent 9280f25d74
commit 069be4c25d
  1. 6
      windec/kdecoration2/breezebutton.cpp

@ -31,8 +31,8 @@ namespace Breeze
//__________________________________________________________________
Button::Button(KDecoration2::DecorationButtonType type, Decoration* decoration, QObject* parent)
: DecorationButton(type, decoration, parent)
,m_animation( new QPropertyAnimation( this ) )
,m_opacity(0)
, m_animation( new QPropertyAnimation( this ) )
, m_opacity(0)
{
// setup animation
@ -61,6 +61,8 @@ namespace Breeze
Button::Button(QObject *parent, const QVariantList &args)
: DecorationButton(args.at(0).value<KDecoration2::DecorationButtonType>(), args.at(1).value<Decoration*>(), parent)
, m_standalone(true)
, m_animation( new QPropertyAnimation( this ) )
, m_opacity(0)
{}
//__________________________________________________________________

Loading…
Cancel
Save