Skip to content
Snippets Groups Projects
Commit 2ce5d7d9 authored by Marco Bubke's avatar Marco Bubke
Browse files

Round margins of anchors in Bauhaus to integers.

parent d8621408
No related branches found
No related tags found
No related merge requests found
...@@ -355,7 +355,7 @@ bool QmlAnchors::instanceHasAnchors() const ...@@ -355,7 +355,7 @@ bool QmlAnchors::instanceHasAnchors() const
void QmlAnchors::setMargin(AnchorLine::Type sourceAnchorLineType, double margin) const void QmlAnchors::setMargin(AnchorLine::Type sourceAnchorLineType, double margin) const
{ {
QString propertyName = marginPropertyName(sourceAnchorLineType); QString propertyName = marginPropertyName(sourceAnchorLineType);
qmlItemNode().setVariantProperty(propertyName, round(margin, 4)); qmlItemNode().setVariantProperty(propertyName, qRound(margin));
} }
bool QmlAnchors::instanceHasMargin(AnchorLine::Type sourceAnchorLineType) const bool QmlAnchors::instanceHasMargin(AnchorLine::Type sourceAnchorLineType) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment