From 55f31dc0114a2719c867a8c1210c704f657b646f Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 6 May 2013 16:29:26 -0300 Subject: Make the text ignores transformations on the scene Signed-off-by: Tomaz Canabrava --- qt-ui/profilegraphics.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/profilegraphics.cpp') diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index b52368b11..d4c918ac6 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -493,6 +493,7 @@ void ProfileGraphicsView::plot_text(struct graphics_context *gc, text_render_opt item->setPos(point.x() + dx, point.y() +dy ); item->setBrush( QBrush(profile_color[tro->color].first())); item->setPen( QPen(profile_color[BACKGROUND].first())); + item->setFlag(QGraphicsItem::ItemIgnoresTransformations); scene()->addItem(item); qDebug() << item->pos(); } -- cgit v1.2.3-70-g09d2