Initializing a missing member to zero
This commit is contained in:
parent
39522cf379
commit
c2ad261ccb
1 changed files with 4 additions and 1 deletions
|
@ -33,7 +33,10 @@
|
||||||
//========================================================
|
//========================================================
|
||||||
|
|
||||||
SchematicName::SchematicName(QGraphicsItem *parent, double width, double height)
|
SchematicName::SchematicName(QGraphicsItem *parent, double width, double height)
|
||||||
: QGraphicsTextItem("", parent), m_width(width), m_height(height) {
|
: QGraphicsTextItem("", parent)
|
||||||
|
, m_width(width)
|
||||||
|
, m_height(height)
|
||||||
|
, m_noAllSelect(false) {
|
||||||
setFlag(QGraphicsItem::ItemIsSelectable, true);
|
setFlag(QGraphicsItem::ItemIsSelectable, true);
|
||||||
setFlag(QGraphicsItem::ItemIsFocusable, true);
|
setFlag(QGraphicsItem::ItemIsFocusable, true);
|
||||||
setTextInteractionFlags(Qt::TextEditorInteraction);
|
setTextInteractionFlags(Qt::TextEditorInteraction);
|
||||||
|
|
Loading…
Reference in a new issue