diff --git a/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp b/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp
index a4671301283fc9b78840fcceebd28cef86509981..84c9464ef761a6a952fea7e81ab00c4780b876e4 100644
--- a/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp
+++ b/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp
@@ -437,32 +437,32 @@ void QmlGraphicsItemNodeInstance::resetProperty(const QString &name)
 //    qmlGraphicsItem()->anchors()->setVerticalCenterOffset(anchors.margin(AnchorLine::VerticalCenter));
 //}
 
-QDeclarativeAnchors::Anchor anchorLineFlagForName(const QString &name)
+QDeclarativeAnchors::UsedAnchor anchorLineFlagForName(const QString &name)
 {
     if (name == "anchors.top")
-        return QDeclarativeAnchors::TopAnchor;
+        return QDeclarativeAnchors::HasTopAnchor;
 
     if (name == "anchors.left")
-        return QDeclarativeAnchors::LeftAnchor;
+        return QDeclarativeAnchors::HasLeftAnchor;
 
     if (name == "anchors.bottom")
-         return QDeclarativeAnchors::BottomAnchor;
+         return QDeclarativeAnchors::HasBottomAnchor;
 
     if (name == "anchors.right")
-        return QDeclarativeAnchors::RightAnchor;
+        return QDeclarativeAnchors::HasRightAnchor;
 
     if (name == "anchors.horizontalCenter")
-        return QDeclarativeAnchors::HCenterAnchor;
+        return QDeclarativeAnchors::HasHCenterAnchor;
 
     if (name == "anchors.verticalCenter")
-         return QDeclarativeAnchors::VCenterAnchor;
+         return QDeclarativeAnchors::HasVCenterAnchor;
 
     if (name == "anchors.baseline")
-         return QDeclarativeAnchors::BaselineAnchor;
+         return QDeclarativeAnchors::HasBaselineAnchor;
 
 
     Q_ASSERT_X(false, Q_FUNC_INFO, "wrong anchor name - this should never happen");
-    return QDeclarativeAnchors::LeftAnchor;
+    return QDeclarativeAnchors::HasLeftAnchor;
 }
 
 QString propertyNameForAnchorLine(const QDeclarativeAnchorLine::AnchorLine &anchorLine)
diff --git a/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp b/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp
index 8a09e0c8ab4b7cfb8a368a1c90e17593c12e7c2a..f24bfa6673539258806d169a3421507deeb7d946 100644
--- a/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp
+++ b/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp
@@ -64,11 +64,11 @@ QDeclarativeStateOperation::ActionList QmlPropertyChangesObject::actions()
                 binding->setTarget(action.property);
                 binding->setNotifyOnValueChanged(true);
                 action.toBinding = binding;
-                action.toValue = binding->evaluate();
+                action.toValue = binding->value();
                 m_expressionHash.insert(action.specifiedProperty, ExpressionPair(m_expressionHash[action.specifiedProperty].first, binding));
             } else {
                 action.toBinding = m_expressionHash[action.specifiedProperty].second.data();
-                action.toValue = m_expressionHash[action.specifiedProperty].second->evaluate();
+                action.toValue = m_expressionHash[action.specifiedProperty].second->value();
             }
         } else {
             action.toBinding = 0;