Make the text ignores transformations on the scene

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-05-06 16:29:26 -03:00 committed by Dirk Hohndel
parent 1b392b35bc
commit 55f31dc011

View file

@ -493,6 +493,7 @@ void ProfileGraphicsView::plot_text(struct graphics_context *gc, text_render_opt
item->setPos(point.x() + dx, point.y() +dy ); item->setPos(point.x() + dx, point.y() +dy );
item->setBrush( QBrush(profile_color[tro->color].first())); item->setBrush( QBrush(profile_color[tro->color].first()));
item->setPen( QPen(profile_color[BACKGROUND].first())); item->setPen( QPen(profile_color[BACKGROUND].first()));
item->setFlag(QGraphicsItem::ItemIgnoresTransformations);
scene()->addItem(item); scene()->addItem(item);
qDebug() << item->pos(); qDebug() << item->pos();
} }