2022-02-17 15:17:19 +00:00
|
|
|
#ifndef RAISEDBUTTON_P_H
|
|
|
|
#define RAISEDBUTTON_P_H
|
2017-09-29 09:50:04 +00:00
|
|
|
|
2022-02-17 12:21:27 +00:00
|
|
|
#include <QtWidgets/QGraphicsDropShadowEffect>
|
|
|
|
#include <QStateMachine>
|
|
|
|
#include <QPropertyAnimation>
|
|
|
|
#include <QEventTransition>
|
|
|
|
|
2022-02-17 15:17:19 +00:00
|
|
|
#include "flatbutton_p.h"
|
|
|
|
#include "raisedbutton.h"
|
2022-02-17 12:21:27 +00:00
|
|
|
|
2022-02-17 02:42:34 +00:00
|
|
|
namespace md
|
|
|
|
{
|
2017-09-29 09:50:04 +00:00
|
|
|
|
2022-02-17 02:42:34 +00:00
|
|
|
class RaisedButton;
|
2017-09-29 09:50:04 +00:00
|
|
|
|
2022-02-17 02:42:34 +00:00
|
|
|
class RaisedButtonPrivate : public FlatButtonPrivate
|
2017-09-29 09:50:04 +00:00
|
|
|
{
|
2022-02-17 02:42:34 +00:00
|
|
|
Q_DISABLE_COPY(RaisedButtonPrivate)
|
|
|
|
Q_DECLARE_PUBLIC(RaisedButton)
|
2017-09-29 09:50:04 +00:00
|
|
|
|
|
|
|
public:
|
2022-02-17 02:42:34 +00:00
|
|
|
RaisedButtonPrivate(RaisedButton *q);
|
|
|
|
~RaisedButtonPrivate();
|
2017-09-29 09:50:04 +00:00
|
|
|
|
|
|
|
void init();
|
|
|
|
|
|
|
|
QStateMachine *shadowStateMachine;
|
|
|
|
QState *normalState;
|
|
|
|
QState *pressedState;
|
|
|
|
QGraphicsDropShadowEffect *effect;
|
|
|
|
};
|
2022-02-17 02:42:34 +00:00
|
|
|
}
|
2022-02-17 15:17:19 +00:00
|
|
|
#endif // RAISEDBUTTON_P_H
|