Commit 601e090e authored by Marco Bubke's avatar Marco Bubke Committed by Thomas Hartmann
Browse files

QmlDesigner: Fix item selection

Painted bounding rectangle was used for selection.

Task-number: QTCREATORBUG-11066
Change-Id: I267b7cc4bb563efcb8d351ba980a4899d64c53a0
Reviewed-by: default avatarThomas Hartmann <>
parent 8cb33fc8
......@@ -86,6 +86,19 @@ QRectF FormEditorItem::boundingRect() const
return m_paintedBoundingRect;
QPainterPath FormEditorItem::shape() const
QPainterPath painterPath;
return painterPath;
bool FormEditorItem::contains(const QPointF &point) const
return m_boundingRect.contains(point);
void FormEditorItem::updateGeometry()
......@@ -90,6 +90,8 @@ public:
FormEditorItem *parentItem() const;
QRectF boundingRect() const;
QPainterPath shape() const;
bool contains(const QPointF &point) const;
void updateGeometry();
void updateVisibilty();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment