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
18b08573
Commit
18b08573
authored
Feb 09, 2010
by
Marco Bubke
Browse files
Fix but in the size compution in the Bauhaus
parent
7c91160f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/core/model/qmlitemnode.cpp
View file @
18b08573
...
...
@@ -199,9 +199,10 @@ void QmlItemNode::paintInstance(QPainter *painter) const
void
QmlItemNode
::
setSize
(
const
QSizeF
&
size
)
{
int
penWidth
=
(
nodeInstance
().
penWidth
()
/
2
)
*
2
;
RewriterTransaction
transaction
=
qmlModelView
()
->
beginRewriterTransaction
();
setVariantProperty
(
"width"
,
qRound
(
size
.
width
())
-
(
nodeInstance
().
penWidth
())
);
setVariantProperty
(
"height"
,
qRound
(
size
.
height
())
-
(
nodeInstance
().
penWidth
())
);
setVariantProperty
(
"width"
,
qRound
(
size
.
width
())
-
penWidth
);
setVariantProperty
(
"height"
,
qRound
(
size
.
height
())
-
penWidth
);
}
void
QmlItemNode
::
setPosition
(
const
QPointF
&
position
)
...
...
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