Set zValue during deepCopy for W3C widget and curtain item

preferencesAboutTextFull
Craig Watson 9 years ago
parent 6752201154
commit 64002a1706
  1. 2
      src/domain/UBGraphicsWidgetItem.cpp
  2. 1
      src/tools/UBGraphicsCurtainItem.cpp

@ -1229,6 +1229,8 @@ void UBGraphicsW3CWidgetItem::copyItemParameters(UBItem *copy) const
{ {
cp->setDatastoreEntry(key, mDatastore.value(key)); cp->setDatastoreEntry(key, mDatastore.value(key));
} }
cp->setZValue(this->zValue());
} }
} }

@ -167,6 +167,7 @@ void UBGraphicsCurtainItem::copyItemParameters(UBItem *copy) const
cp->setFlag(QGraphicsItem::ItemIsMovable, true); cp->setFlag(QGraphicsItem::ItemIsMovable, true);
cp->setFlag(QGraphicsItem::ItemIsSelectable, true); cp->setFlag(QGraphicsItem::ItemIsSelectable, true);
cp->setData(UBGraphicsItemData::ItemLayerType, this->data(UBGraphicsItemData::ItemLayerType)); cp->setData(UBGraphicsItemData::ItemLayerType, this->data(UBGraphicsItemData::ItemLayerType));
cp->setZValue(this->zValue());
} }
} }

Loading…
Cancel
Save