forked from qt-creator/qt-creator
Revert "Fixes: make compile after qml renaming dated 22/04/2010"
This reverts commit 84d6ea75bc
.
This branch is supposed to compile against Qt 4.7-beta1 .
This commit is contained in:
@@ -437,32 +437,32 @@ void QmlGraphicsItemNodeInstance::resetProperty(const QString &name)
|
|||||||
// qmlGraphicsItem()->anchors()->setVerticalCenterOffset(anchors.margin(AnchorLine::VerticalCenter));
|
// qmlGraphicsItem()->anchors()->setVerticalCenterOffset(anchors.margin(AnchorLine::VerticalCenter));
|
||||||
//}
|
//}
|
||||||
|
|
||||||
QDeclarativeAnchors::Anchor anchorLineFlagForName(const QString &name)
|
QDeclarativeAnchors::UsedAnchor anchorLineFlagForName(const QString &name)
|
||||||
{
|
{
|
||||||
if (name == "anchors.top")
|
if (name == "anchors.top")
|
||||||
return QDeclarativeAnchors::TopAnchor;
|
return QDeclarativeAnchors::HasTopAnchor;
|
||||||
|
|
||||||
if (name == "anchors.left")
|
if (name == "anchors.left")
|
||||||
return QDeclarativeAnchors::LeftAnchor;
|
return QDeclarativeAnchors::HasLeftAnchor;
|
||||||
|
|
||||||
if (name == "anchors.bottom")
|
if (name == "anchors.bottom")
|
||||||
return QDeclarativeAnchors::BottomAnchor;
|
return QDeclarativeAnchors::HasBottomAnchor;
|
||||||
|
|
||||||
if (name == "anchors.right")
|
if (name == "anchors.right")
|
||||||
return QDeclarativeAnchors::RightAnchor;
|
return QDeclarativeAnchors::HasRightAnchor;
|
||||||
|
|
||||||
if (name == "anchors.horizontalCenter")
|
if (name == "anchors.horizontalCenter")
|
||||||
return QDeclarativeAnchors::HCenterAnchor;
|
return QDeclarativeAnchors::HasHCenterAnchor;
|
||||||
|
|
||||||
if (name == "anchors.verticalCenter")
|
if (name == "anchors.verticalCenter")
|
||||||
return QDeclarativeAnchors::VCenterAnchor;
|
return QDeclarativeAnchors::HasVCenterAnchor;
|
||||||
|
|
||||||
if (name == "anchors.baseline")
|
if (name == "anchors.baseline")
|
||||||
return QDeclarativeAnchors::BaselineAnchor;
|
return QDeclarativeAnchors::HasBaselineAnchor;
|
||||||
|
|
||||||
|
|
||||||
Q_ASSERT_X(false, Q_FUNC_INFO, "wrong anchor name - this should never happen");
|
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)
|
QString propertyNameForAnchorLine(const QDeclarativeAnchorLine::AnchorLine &anchorLine)
|
||||||
|
@@ -64,11 +64,11 @@ QDeclarativeStateOperation::ActionList QmlPropertyChangesObject::actions()
|
|||||||
binding->setTarget(action.property);
|
binding->setTarget(action.property);
|
||||||
binding->setNotifyOnValueChanged(true);
|
binding->setNotifyOnValueChanged(true);
|
||||||
action.toBinding = binding;
|
action.toBinding = binding;
|
||||||
action.toValue = binding->evaluate();
|
action.toValue = binding->value();
|
||||||
m_expressionHash.insert(action.specifiedProperty, ExpressionPair(m_expressionHash[action.specifiedProperty].first, binding));
|
m_expressionHash.insert(action.specifiedProperty, ExpressionPair(m_expressionHash[action.specifiedProperty].first, binding));
|
||||||
} else {
|
} else {
|
||||||
action.toBinding = m_expressionHash[action.specifiedProperty].second.data();
|
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 {
|
} else {
|
||||||
action.toBinding = 0;
|
action.toBinding = 0;
|
||||||
|
Reference in New Issue
Block a user