2017-09-29 09:50:04 +00:00
|
|
|
#ifndef QTMATERIALSTATETRANSITION_H
|
|
|
|
#define QTMATERIALSTATETRANSITION_H
|
|
|
|
|
|
|
|
#include <QAbstractTransition>
|
|
|
|
#include "lib/qtmaterialstatetransitionevent.h"
|
|
|
|
|
2022-02-17 01:59:33 +00:00
|
|
|
namespace md
|
|
|
|
{
|
|
|
|
class StateTransition : public QAbstractTransition
|
2017-09-29 09:50:04 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-02-17 01:59:33 +00:00
|
|
|
StateTransition(StateTransitionType type);
|
2017-09-29 09:50:04 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool eventTest(QEvent *event);
|
|
|
|
virtual void onTransition(QEvent *);
|
|
|
|
|
|
|
|
private:
|
2022-02-17 01:59:33 +00:00
|
|
|
StateTransitionType m_type;
|
2017-09-29 09:50:04 +00:00
|
|
|
};
|
2022-02-17 01:59:33 +00:00
|
|
|
}
|
2017-09-29 09:50:04 +00:00
|
|
|
|
|
|
|
#endif // QTMATERIALSTATETRANSITION_H
|