qt-material-widgets/components/raisedbutton.h

27 lines
536 B
C
Raw Normal View History

2016-03-22 08:50:12 +00:00
#ifndef RAISEDBUTTON_H
#define RAISEDBUTTON_H
2016-03-22 09:48:59 +00:00
#include <QParallelAnimationGroup>
2016-03-22 08:50:48 +00:00
#include "flatbutton.h"
2016-03-22 09:48:59 +00:00
class QPropertyAnimation;
2016-03-22 08:50:48 +00:00
class RaisedButton : public FlatButton
{
Q_OBJECT
public:
explicit RaisedButton(QWidget *parent = 0);
~RaisedButton();
2016-03-22 09:48:59 +00:00
protected:
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
private:
QParallelAnimationGroup _group;
2016-03-22 08:50:48 +00:00
};
2016-03-22 08:50:12 +00:00
#endif // RAISEDBUTTON_H