aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickpropertychanges.cpp
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>2013-10-03 17:04:40 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-03 17:48:34 +0200
commit4ce2c0310c55c78b783b79c1f3fa2e0aa40fe6a2 (patch)
tree87377c239ce939b9ccb11680e326ca90ca9d44c0 /src/quick/util/qquickpropertychanges.cpp
parentdf0347a9ed8be8e1d3d771c3d2abcfebec9ed87d (diff)
Remane private QQuickAction into QQuickStateAction
This avoid symbol conflicts when statically linking with Qt Quick Controls, that has its own QQuickAction class and which may become public some day. (QQuickPropertyAction might be a more apt name, but it's already taken). Change-Id: Ia9514d63d38295603a89d8ec5a88815a651380f7 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/quick/util/qquickpropertychanges.cpp')
-rw-r--r--src/quick/util/qquickpropertychanges.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/quick/util/qquickpropertychanges.cpp b/src/quick/util/qquickpropertychanges.cpp
index cada612248..148c55bbcb 100644
--- a/src/quick/util/qquickpropertychanges.cpp
+++ b/src/quick/util/qquickpropertychanges.cpp
@@ -135,7 +135,7 @@ QT_BEGIN_NAMESPACE
This property holds the object which contains the properties to be changed.
*/
-class QQuickReplaceSignalHandler : public QQuickActionEvent
+class QQuickReplaceSignalHandler : public QQuickStateActionEvent
{
public:
QQuickReplaceSignalHandler() {}
@@ -163,7 +163,7 @@ public:
}
virtual bool needsCopy() { return true; }
- virtual void copyOriginals(QQuickActionEvent *other)
+ virtual void copyOriginals(QQuickStateActionEvent *other)
{
QQuickReplaceSignalHandler *rsh = static_cast<QQuickReplaceSignalHandler*>(other);
saveCurrentValues();
@@ -179,7 +179,7 @@ public:
rewindExpression = QQmlPropertyPrivate::signalExpression(property);
}
- virtual bool override(QQuickActionEvent*other) {
+ virtual bool override(QQuickStateActionEvent*other) {
if (other == this)
return true;
if (other->type() != type())
@@ -445,7 +445,7 @@ QQuickPropertyChanges::ActionList QQuickPropertyChanges::actions()
for (int ii = 0; ii < d->properties.count(); ++ii) {
- QQuickAction a(d->object, d->properties.at(ii).first,
+ QQuickStateAction a(d->object, d->properties.at(ii).first,
qmlContext(this), d->properties.at(ii).second);
if (a.property.isValid()) {
@@ -459,7 +459,7 @@ QQuickPropertyChanges::ActionList QQuickPropertyChanges::actions()
QQuickReplaceSignalHandler *handler = d->signalReplacements.at(ii);
if (handler->property.isValid()) {
- QQuickAction a;
+ QQuickStateAction a;
a.event = handler;
list << a;
}
@@ -472,7 +472,7 @@ QQuickPropertyChanges::ActionList QQuickPropertyChanges::actions()
QQmlProperty prop = d->property(property);
if (prop.isValid()) {
- QQuickAction a;
+ QQuickStateAction a;
a.restore = restoreEntryValues();
a.property = prop;
a.fromValue = a.property.read();
@@ -607,7 +607,7 @@ void QQuickPropertyChanges::changeValue(const QString &name, const QVariant &val
}
}
- QQuickAction action;
+ QQuickStateAction action;
action.restore = restoreEntryValues();
action.property = d->property(name);
action.fromValue = action.property.read();
@@ -678,7 +678,7 @@ void QQuickPropertyChanges::changeExpression(const QString &name, const QString
newBinding->setTarget(d->property(name));
QQmlPropertyPrivate::setBinding(d->property(name), newBinding, QQmlPropertyPrivate::DontRemoveBinding | QQmlPropertyPrivate::BypassInterceptor);
} else {
- QQuickAction action;
+ QQuickStateAction action;
action.restore = restoreEntryValues();
action.property = d->property(name);
action.fromValue = action.property.read();