Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit f88caf29 authored by Michail Vourlakos's avatar Michail Vourlakos

enable animations for standalone created buttons

--as mentioned at T9899 we are not calling the correct
creator when buttons are created in Standalone mode and
as such animations are disabled when OxygenButton is created
from plasma applets. This patch fixes this and restores
the Standalone behavior mode in order to be identical
with the default one.

Test Plan:
-check that window title bars still work
-check that when buttons are used in a plasma applet
they are animated

Reviewers: #plasma, hpereiradacosta, zzag

Reviewed By: #plasma, zzag

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 6d2ed13c
......@@ -113,10 +113,13 @@ namespace Oxygen
Button::Button(QObject *parent, const QVariantList &args)
: KDecoration2::DecorationButton(<KDecoration2::DecorationButtonType>(),<Decoration*>(), parent)
, m_flag(FlagStandalone)
, m_animation( new QPropertyAnimation( this ) )
: Button(<KDecoration2::DecorationButtonType>(),<Decoration*>(), parent)
m_flag = FlagStandalone;
//! icon size must return to !valid because it was altered from the default constructor,
//! in Standalone mode the button is not using the decoration metrics but its geometry
m_iconSize = QSize(-1, -1);
QColor Button::foregroundColor(const QPalette &palette) const
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment