summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlstate.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-02-05 05:59:12 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-02-05 05:59:12 (GMT)
commit254029b3ff6f14674c54c68443a5a53460e75426 (patch)
tree6ea44b07f9a127745da6801611e80c7a09231878 /src/declarative/util/qmlstate.cpp
parentd8398192d50ce9e664910ebdd42b7ada5eabaacb (diff)
downloadQt-254029b3ff6f14674c54c68443a5a53460e75426.zip
Qt-254029b3ff6f14674c54c68443a5a53460e75426.tar.gz
Qt-254029b3ff6f14674c54c68443a5a53460e75426.tar.bz2
Pass symbols::prefix (Action -> QmlAction)
Diffstat (limited to 'src/declarative/util/qmlstate.cpp')
-rw-r--r--src/declarative/util/qmlstate.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/declarative/util/qmlstate.cpp b/src/declarative/util/qmlstate.cpp
index 6a5b82a..cae8054 100644
--- a/src/declarative/util/qmlstate.cpp
+++ b/src/declarative/util/qmlstate.cpp
@@ -57,13 +57,13 @@ QT_BEGIN_NAMESPACE
DEFINE_BOOL_CONFIG_OPTION(stateChangeDebug, STATECHANGE_DEBUG);
-Action::Action()
+QmlAction::QmlAction()
: restore(true), actionDone(false), reverseEvent(false), deletableToBinding(false), fromBinding(0), toBinding(0), event(0),
specifiedObject(0)
{
}
-Action::Action(QObject *target, const QString &propertyName,
+QmlAction::QmlAction(QObject *target, const QString &propertyName,
const QVariant &value)
: restore(true), actionDone(false), reverseEvent(false), deletableToBinding(false), toValue(value), fromBinding(0),
toBinding(0), event(0), specifiedObject(target),
@@ -74,47 +74,47 @@ Action::Action(QObject *target, const QString &propertyName,
fromValue = property.read();
}
-ActionEvent::~ActionEvent()
+QmlActionEvent::~QmlActionEvent()
{
}
-QString ActionEvent::typeName() const
+QString QmlActionEvent::typeName() const
{
return QString();
}
-void ActionEvent::execute()
+void QmlActionEvent::execute()
{
}
-bool ActionEvent::isReversable()
+bool QmlActionEvent::isReversable()
{
return false;
}
-void ActionEvent::reverse()
+void QmlActionEvent::reverse()
{
}
-QList<Action> ActionEvent::extraActions()
+QList<QmlAction> QmlActionEvent::extraActions()
{
- return QList<Action>();
+ return QList<QmlAction>();
}
-bool ActionEvent::changesBindings()
+bool QmlActionEvent::changesBindings()
{
return false;
}
-void ActionEvent::clearForwardBindings()
+void QmlActionEvent::clearForwardBindings()
{
}
-void ActionEvent::clearReverseBindings()
+void QmlActionEvent::clearReverseBindings()
{
}
-bool ActionEvent::override(ActionEvent *other)
+bool QmlActionEvent::override(QmlActionEvent *other)
{
Q_UNUSED(other);
return false;
@@ -316,7 +316,7 @@ void QmlState::cancel()
d->transitionManager.cancel();
}
-void Action::deleteFromBinding()
+void QmlAction::deleteFromBinding()
{
if (fromBinding) {
property.setBinding(0);
@@ -351,7 +351,7 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever
QmlStatePrivate::SimpleActionList additionalReverts;
// First add the reverse of all the applyList actions
for (int ii = 0; ii < applyList.count(); ++ii) {
- Action &action = applyList[ii];
+ QmlAction &action = applyList[ii];
bool found = false;
@@ -360,7 +360,7 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever
if (!action.event->isReversable())
continue;
for (jj = 0; jj < d->revertList.count(); ++jj) {
- ActionEvent *event = d->revertList.at(jj).event;
+ QmlActionEvent *event = d->revertList.at(jj).event;
if (event && event->typeName() == action.event->typeName()) {
if (action.event->override(event)) {
found = true;
@@ -389,7 +389,7 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever
} else {
// Only need to revert the applyList action if the previous
// state doesn't have a higher priority revert already
- SimpleAction r(action);
+ QmlSimpleAction r(action);
additionalReverts << r;
}
} else if (d->revertList.at(jj).binding != action.fromBinding) {
@@ -402,11 +402,11 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever
for (int ii = 0; ii < d->revertList.count(); ++ii) {
bool found = false;
if (d->revertList.at(ii).event) {
- ActionEvent *event = d->revertList.at(ii).event;
+ QmlActionEvent *event = d->revertList.at(ii).event;
if (!event->isReversable())
continue;
for (int jj = 0; !found && jj < applyList.count(); ++jj) {
- const Action &action = applyList.at(jj);
+ const QmlAction &action = applyList.at(jj);
if (action.event && action.event->typeName() == event->typeName()) {
if (action.event->override(event))
found = true;
@@ -414,7 +414,7 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever
}
} else {
for (int jj = 0; !found && jj < applyList.count(); ++jj) {
- const Action &action = applyList.at(jj);
+ const QmlAction &action = applyList.at(jj);
if (action.property == d->revertList.at(ii).property)
found = true;
}
@@ -425,7 +425,7 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever
if (delBinding)
delBinding->destroy();
- Action a;
+ QmlAction a;
a.property = d->revertList.at(ii).property;
a.fromValue = cur;
a.toValue = d->revertList.at(ii).value;
@@ -446,11 +446,11 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever
// Output for debugging
if (stateChangeDebug()) {
- foreach(const Action &action, applyList) {
+ foreach(const QmlAction &action, applyList) {
if (action.event)
- qWarning() << " Action event:" << action.event->typeName();
+ qWarning() << " QmlAction event:" << action.event->typeName();
else
- qWarning() << " Action:" << action.property.object()
+ qWarning() << " QmlAction:" << action.property.object()
<< action.property.name() << "From:" << action.fromValue
<< "To:" << action.toValue;
}