aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2010-05-05 11:19:01 +0200
committercon <qtc-committer@nokia.com>2010-05-05 11:19:01 +0200
commit34f9d5c89ec7015986d92812bae2c38ea9c2d2a9 (patch)
treec771ebf6846eeac749d200fe403a09b507d94068 /src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp
parent84d6ea75bc4afe335ece05f1cb31a222294b3718 (diff)
Revert "Fixes: make compile after qml renaming dated 22/04/2010"v2.0.0-beta2.0.0-beta
This reverts commit 84d6ea75bc4afe335ece05f1cb31a222294b3718. This branch is supposed to compile against Qt 4.7-beta1 .
Diffstat (limited to 'src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp')
-rw-r--r--src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp b/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp
index a467130128..84c9464ef7 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)