forked from qt-creator/qt-creator
QmlDesigner: Fix initialization of SelectionIndicator
Change-Id: Ic13236a93e78b29a73bd86590c800edb20c0cffd Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
144ee4103f
commit
836bf1f379
@@ -44,7 +44,6 @@ namespace QmlDesigner {
|
||||
|
||||
SelectionIndicator::SelectionIndicator(LayerItem *layerItem)
|
||||
: m_layerItem(layerItem)
|
||||
, m_annotationItem(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -57,11 +57,11 @@ private:
|
||||
|
||||
private:
|
||||
QHash<FormEditorItem*, QGraphicsPolygonItem *> m_indicatorShapeHash;
|
||||
FormEditorItem *m_selectedItem;
|
||||
FormEditorItem *m_selectedItem = nullptr;
|
||||
QPointer<LayerItem> m_layerItem;
|
||||
QCursor m_cursor;
|
||||
std::unique_ptr<QGraphicsPolygonItem> m_labelItem;
|
||||
FormEditorAnnotationIcon *m_annotationItem; //handled by m_labelItem
|
||||
FormEditorAnnotationIcon *m_annotationItem = nullptr; //handled by m_labelItem
|
||||
};
|
||||
|
||||
} // namespace QmlDesigner
|
||||
|
Reference in New Issue
Block a user