2016-05-17 12:26:50 +00:00
|
|
|
#ifndef RAISEDBUTTON_P_H
|
|
|
|
#define RAISEDBUTTON_P_H
|
|
|
|
|
|
|
|
#include "flatbutton_p.h"
|
2016-06-19 14:27:21 +00:00
|
|
|
#include "raisedbutton.h"
|
2016-05-17 12:26:50 +00:00
|
|
|
|
2016-06-12 13:37:46 +00:00
|
|
|
class QGraphicsDropShadowEffect;
|
|
|
|
|
2016-05-17 12:26:50 +00:00
|
|
|
class RaisedButtonPrivate : public FlatButtonPrivate
|
|
|
|
{
|
|
|
|
Q_DISABLE_COPY(RaisedButtonPrivate)
|
|
|
|
Q_DECLARE_PUBLIC(RaisedButton)
|
|
|
|
|
|
|
|
public:
|
2016-05-30 23:08:52 +00:00
|
|
|
RaisedButtonPrivate(RaisedButton *q);
|
|
|
|
~RaisedButtonPrivate();
|
2016-05-17 13:43:46 +00:00
|
|
|
|
|
|
|
void init();
|
2016-05-17 13:58:46 +00:00
|
|
|
|
2016-06-21 12:09:16 +00:00
|
|
|
QStateMachine *machine;
|
|
|
|
QState *const normalState;
|
|
|
|
QState *const pressedState;
|
|
|
|
QGraphicsDropShadowEffect *const effect;
|
|
|
|
QColor disabledBackgroundColor;
|
2016-05-17 12:26:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RAISEDBUTTON_P_H
|