From 8ce99065e0049fb20604ad883c8efa5b076d929f Mon Sep 17 00:00:00 2001 From: shibakaneki Date: Fri, 13 Apr 2012 11:03:37 +0200 Subject: [PATCH] Set the pixmap items and svg items as flippable --- src/domain/UBGraphicsPixmapItem.cpp | 3 +-- src/domain/UBGraphicsSvgItem.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/UBGraphicsPixmapItem.cpp b/src/domain/UBGraphicsPixmapItem.cpp index 9e1f635e..462c690d 100644 --- a/src/domain/UBGraphicsPixmapItem.cpp +++ b/src/domain/UBGraphicsPixmapItem.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); diff --git a/src/domain/UBGraphicsSvgItem.cpp b/src/domain/UBGraphicsSvgItem.cpp index 5e572b19..6cf3ddcb 100644 --- a/src/domain/UBGraphicsSvgItem.cpp +++ b/src/domain/UBGraphicsSvgItem.cpp @@ -55,6 +55,7 @@ void UBGraphicsSvgItem::init() mDelegate = new UBGraphicsItemDelegate(this, 0, true, true); mDelegate->init(); + mDelegate->setFlippable(true); setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);