2022-07-05 09:40:09 +00:00
|
|
|
#include <lib/qtmaterialstatetransition.h>
|
2017-09-29 09:50:04 +00:00
|
|
|
|
|
|
|
QtMaterialStateTransition::QtMaterialStateTransition(QtMaterialStateTransitionType type)
|
|
|
|
: m_type(type)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QtMaterialStateTransition::eventTest(QEvent *event)
|
|
|
|
{
|
|
|
|
if (event->type() != QEvent::Type(QEvent::User + 1)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
QtMaterialStateTransitionEvent *transition = static_cast<QtMaterialStateTransitionEvent *>(event);
|
|
|
|
return (m_type == transition->type);
|
|
|
|
}
|
|
|
|
|
2022-07-05 07:49:55 +00:00
|
|
|
void QtMaterialStateTransition::onTransition(QEvent *) {}
|