Set the pixmap items and svg items as flippable

preferencesAboutTextFull
shibakaneki 12 years ago
parent 3c28a2b677
commit 8ce99065e0
  1. 3
      src/domain/UBGraphicsPixmapItem.cpp
  2. 1
      src/domain/UBGraphicsSvgItem.cpp

@ -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);

Loading…
Cancel
Save