Skip to content
GitLab
Menu
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
c35f7bbf
Commit
c35f7bbf
authored
Jan 29, 2010
by
Roberto Raggi
Browse files
Check the bounding rect before drawing the rectangle.
Done with: Thomas
parent
bafe4468
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
View file @
c35f7bbf
...
...
@@ -228,7 +228,10 @@ void FormEditorItem::paintBoundingRect(QPainter *painter) const
painter
->
setPen
(
pen
);
// int offset = m_borderWidth / 2;
painter
->
drawRect
(
boundingRect
().
adjusted
(
0.
,
0.
,
-
1.
,
-
1.
));
const
QRectF
br
=
boundingRect
();
if
(
br
.
isValid
())
painter
->
drawRect
(
br
.
adjusted
(
0.
,
0.
,
-
1.
,
-
1.
));
}
void
FormEditorItem
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
,
QWidget
*
)
...
...
Write
Preview
Supports
Markdown
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