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
e5e3c24e
Commit
e5e3c24e
authored
Feb 08, 2010
by
Marco Bubke
Browse files
Change formeditor bounding rect painting
parent
285cc418
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
View file @
e5e3c24e
...
...
@@ -198,7 +198,8 @@ FormEditorItem* FormEditorItem::fromQGraphicsItem(QGraphicsItem *graphicsItem)
void
FormEditorItem
::
paintBoundingRect
(
QPainter
*
painter
)
const
{
if
(
QGraphicsItem
::
parentItem
()
==
scene
()
->
formLayerItem
()
&&
qFuzzyIsNull
(
m_borderWidth
))
if
(
!
boundingRect
().
isValid
()
||
(
QGraphicsItem
::
parentItem
()
==
scene
()
->
formLayerItem
()
&&
qFuzzyIsNull
(
m_borderWidth
)))
return
;
QPen
pen
;
...
...
@@ -234,9 +235,7 @@ void FormEditorItem::paintBoundingRect(QPainter *painter) const
painter
->
setPen
(
pen
);
// int offset = m_borderWidth / 2;
const
QRectF
br
=
boundingRect
();
if
(
br
.
isValid
())
painter
->
drawRect
(
br
.
adjusted
(
0.
,
0.
,
-
1.
,
-
1.
));
painter
->
drawRect
(
boundingRect
().
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
.
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