QmlDesigner: Fix initialization of SelectionIndicator

Change-Id: Ic13236a93e78b29a73bd86590c800edb20c0cffd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tobias Hunger
2020-02-24 11:15:15 +01:00
committed by Thomas Hartmann
parent 144ee4103f
commit 836bf1f379
2 changed files with 2 additions and 3 deletions

View File

@@ -44,7 +44,6 @@ namespace QmlDesigner {
SelectionIndicator::SelectionIndicator(LayerItem *layerItem) SelectionIndicator::SelectionIndicator(LayerItem *layerItem)
: m_layerItem(layerItem) : m_layerItem(layerItem)
, m_annotationItem(nullptr)
{ {
} }

View File

@@ -57,11 +57,11 @@ private:
private: private:
QHash<FormEditorItem*, QGraphicsPolygonItem *> m_indicatorShapeHash; QHash<FormEditorItem*, QGraphicsPolygonItem *> m_indicatorShapeHash;
FormEditorItem *m_selectedItem; FormEditorItem *m_selectedItem = nullptr;
QPointer<LayerItem> m_layerItem; QPointer<LayerItem> m_layerItem;
QCursor m_cursor; QCursor m_cursor;
std::unique_ptr<QGraphicsPolygonItem> m_labelItem; std::unique_ptr<QGraphicsPolygonItem> m_labelItem;
FormEditorAnnotationIcon *m_annotationItem; //handled by m_labelItem FormEditorAnnotationIcon *m_annotationItem = nullptr; //handled by m_labelItem
}; };
} // namespace QmlDesigner } // namespace QmlDesigner