Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
2ce5d7d9
Commit
2ce5d7d9
authored
Feb 08, 2010
by
Marco Bubke
Browse files
Round margins of anchors in Bauhaus to integers.
parent
d8621408
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/core/model/qmlanchors.cpp
View file @
2ce5d7d9
...
...
@@ -355,7 +355,7 @@ bool QmlAnchors::instanceHasAnchors() const
void
QmlAnchors
::
setMargin
(
AnchorLine
::
Type
sourceAnchorLineType
,
double
margin
)
const
{
QString
propertyName
=
marginPropertyName
(
sourceAnchorLineType
);
qmlItemNode
().
setVariantProperty
(
propertyName
,
r
ound
(
margin
,
4
));
qmlItemNode
().
setVariantProperty
(
propertyName
,
qR
ound
(
margin
));
}
bool
QmlAnchors
::
instanceHasMargin
(
AnchorLine
::
Type
sourceAnchorLineType
)
const
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment