30 #include <QSequentialAnimationGroup>
31 #include <QPropertyAnimation>
35 class CardRoundedCornerShaderStage;
40 Q_PROPERTY(qreal pulseOpacity READ pulseOpacity WRITE setPulseOpacity)
41 Q_PROPERTY(qreal fadeOpacity READ fadeOpacity WRITE setFadeOpacity)
54 void paint(QPainter* painter,
bool maximized);
64 void slotCrossFadeFinished();
65 void slotPulseTimeout();
69 qreal pulseOpacity()
const {
return m_pulseOpacity; }
70 void setPulseOpacity(qreal opacity);
72 qreal fadeOpacity()
const {
return m_fadeOpacity; }
73 void setFadeOpacity(qreal opacity);
75 void initializeRoundedCornerStage();
81 qreal m_pulseOpacityAnimInc;
85 QTimer m_pulsePauseTimer;
86 QPropertyAnimation m_fadeAnimation;
90 static unsigned int s_glowRefCount;
91 static QPixmap* s_glow;
94 static unsigned int s_backgroundRefCount;
95 static QPixmap* s_background;
96 CardRoundedCornerShaderStage* m_shader;