Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
18b08573
Commit
18b08573
authored
Feb 09, 2010
by
Marco Bubke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix but in the size compution in the Bauhaus
parent
7c91160f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/plugins/qmldesigner/core/model/qmlitemnode.cpp
src/plugins/qmldesigner/core/model/qmlitemnode.cpp
+3
-2
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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