Commit eecc27e7 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Adjust binding lines for binding indicator

Change-Id: Ie001f1526f1001c9e50d5334e69d191e52fb6d7a
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 2507a24b
......@@ -89,28 +89,28 @@ void BindingIndicator::clear()
QLineF topLine(const QmlItemNode &qmlItemNode)
{
QRectF rectangle = qmlItemNode.instanceSceneTransform().mapRect(qmlItemNode.instanceBoundingRect()).adjusted(0, 1, 0, 0);
QRectF rectangle = qmlItemNode.instanceSceneTransform().mapRect(qmlItemNode.instanceBoundingRect()).adjusted(1, 1, 0, 0);
return QLineF(rectangle.topLeft(), rectangle.topRight());
}
QLineF bottomLine(const QmlItemNode &qmlItemNode)
{
QRectF rectangle = qmlItemNode.instanceSceneTransform().mapRect(qmlItemNode.instanceBoundingRect());
QRectF rectangle = qmlItemNode.instanceSceneTransform().mapRect(qmlItemNode.instanceBoundingRect()).adjusted(1, 0, 0, 0);
return QLineF(rectangle.bottomLeft(), rectangle.bottomRight());
}
QLineF leftLine(const QmlItemNode &qmlItemNode)
{
QRectF rectangle = qmlItemNode.instanceSceneTransform().mapRect(qmlItemNode.instanceBoundingRect()).adjusted(1, 0, 0, 0);
QRectF rectangle = qmlItemNode.instanceSceneTransform().mapRect(qmlItemNode.instanceBoundingRect()).adjusted(1, 1, 0, 0);
return QLineF(rectangle.topLeft(), rectangle.bottomLeft());
}
QLineF rightLine(const QmlItemNode &qmlItemNode)
{
QRectF rectangle = qmlItemNode.instanceSceneTransform().mapRect(qmlItemNode.instanceBoundingRect());
QRectF rectangle = qmlItemNode.instanceSceneTransform().mapRect(qmlItemNode.instanceBoundingRect()).adjusted(0, 1, 0, 0);
return QLineF(rectangle.topRight(), rectangle.bottomRight());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment