aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickstateoperations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/items/qquickstateoperations.cpp')
-rw-r--r--src/quick/items/qquickstateoperations.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quick/items/qquickstateoperations.cpp b/src/quick/items/qquickstateoperations.cpp
index bf78bade56..c4dd0fd146 100644
--- a/src/quick/items/qquickstateoperations.cpp
+++ b/src/quick/items/qquickstateoperations.cpp
@@ -465,15 +465,15 @@ void QQuickParentChange::reverse(Reason)
d->doChange(d->origParent, d->origStackBefore);
}
-QString QQuickParentChange::typeName() const
+QDeclarativeActionEvent::EventType QQuickParentChange::type() const
{
- return QLatin1String("ParentChange");
+ return ParentChange;
}
bool QQuickParentChange::override(QDeclarativeActionEvent*other)
{
Q_D(QQuickParentChange);
- if (other->typeName() != QLatin1String("ParentChange"))
+ if (other->type() != ParentChange)
return false;
if (QQuickParentChange *otherPC = static_cast<QQuickParentChange*>(other))
return (d->target == otherPC->object());
@@ -1116,9 +1116,9 @@ void QQuickAnchorChanges::reverse(Reason reason)
d->target->setY(d->origY);
}
-QString QQuickAnchorChanges::typeName() const
+QDeclarativeActionEvent::EventType QQuickAnchorChanges::type() const
{
- return QLatin1String("AnchorChanges");
+ return AnchorChanges;
}
QList<QDeclarativeAction> QQuickAnchorChanges::additionalActions()
@@ -1278,7 +1278,7 @@ void QQuickAnchorChanges::clearBindings()
bool QQuickAnchorChanges::override(QDeclarativeActionEvent*other)
{
- if (other->typeName() != QLatin1String("AnchorChanges"))
+ if (other->type() != AnchorChanges)
return false;
if (static_cast<QDeclarativeActionEvent*>(this) == other)
return true;