Commit 8ce99065 authored by shibakaneki's avatar shibakaneki

Set the pixmap items and svg items as flippable

parent 3c28a2b6
......@@ -29,9 +29,8 @@ UBGraphicsPixmapItem::UBGraphicsPixmapItem(QGraphicsItem* parent)
: QGraphicsPixmapItem(parent)
{
mDelegate = new UBGraphicsItemDelegate(this, 0, true, true);
//mDelegate->init();
mDelegate->init();
// NOTE: Do not remove this code, I'm just doing a backup of my changes! thx..
mDelegate->setFlippable(true);
setData(UBGraphicsItemData::ItemLayerType, UBItemLayerType::Object);
......
......@@ -55,6 +55,7 @@ void UBGraphicsSvgItem::init()
mDelegate = new UBGraphicsItemDelegate(this, 0, true, true);
mDelegate->init();
mDelegate->setFlippable(true);
setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment