|
|
@ -203,7 +203,7 @@ UBItem* UBGraphicsTextItem::deepCopy() const |
|
|
|
{ |
|
|
|
{ |
|
|
|
UBGraphicsTextItem* copy = new UBGraphicsTextItem(); |
|
|
|
UBGraphicsTextItem* copy = new UBGraphicsTextItem(); |
|
|
|
|
|
|
|
|
|
|
|
copy->setPlainText(this->toPlainText()); |
|
|
|
copy->setHtml(toHtml()); |
|
|
|
copy->setPos(this->pos()); |
|
|
|
copy->setPos(this->pos()); |
|
|
|
copy->setZValue(this->zValue()); |
|
|
|
copy->setZValue(this->zValue()); |
|
|
|
copy->setTransform(this->transform()); |
|
|
|
copy->setTransform(this->transform()); |
|
|
@ -211,10 +211,11 @@ UBItem* UBGraphicsTextItem::deepCopy() const |
|
|
|
copy->setFlag(QGraphicsItem::ItemIsSelectable, true); |
|
|
|
copy->setFlag(QGraphicsItem::ItemIsSelectable, true); |
|
|
|
copy->setData(UBGraphicsItemData::ItemLayerType, this->data(UBGraphicsItemData::ItemLayerType)); |
|
|
|
copy->setData(UBGraphicsItemData::ItemLayerType, this->data(UBGraphicsItemData::ItemLayerType)); |
|
|
|
copy->setData(UBGraphicsItemData::ItemLocked, this->data(UBGraphicsItemData::ItemLocked)); |
|
|
|
copy->setData(UBGraphicsItemData::ItemLocked, this->data(UBGraphicsItemData::ItemLocked)); |
|
|
|
copy->setDefaultTextColor(this->defaultTextColor()); |
|
|
|
copy->setData(UBGraphicsItemData::ItemEditable, data(UBGraphicsItemData::ItemEditable).toBool()); |
|
|
|
copy->setFont(this->font()); |
|
|
|
// copy->setDefaultTextColor(this->defaultTextColor());
|
|
|
|
copy->setColorOnDarkBackground(this->colorOnDarkBackground()); |
|
|
|
// copy->setFont(this->font());
|
|
|
|
copy->setColorOnLightBackground(this->colorOnLightBackground()); |
|
|
|
// copy->setColorOnDarkBackground(this->colorOnDarkBackground());
|
|
|
|
|
|
|
|
// copy->setColorOnLightBackground(this->colorOnLightBackground());
|
|
|
|
copy->setTextWidth(this->textWidth()); |
|
|
|
copy->setTextWidth(this->textWidth()); |
|
|
|
copy->setTextHeight(this->textHeight()); |
|
|
|
copy->setTextHeight(this->textHeight()); |
|
|
|
|
|
|
|
|
|
|
|