aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-06 16:29:26 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-06 13:55:18 -0700
commit55f31dc0114a2719c867a8c1210c704f657b646f (patch)
tree0d1e3373068774053031bcbc676e2ab6f714b790
parent1b392b35bca24ce25da9073dbe9a1bb0186c47af (diff)
downloadsubsurface-55f31dc0114a2719c867a8c1210c704f657b646f.tar.gz
Make the text ignores transformations on the scene
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
-rw-r--r--qt-ui/profilegraphics.cpp1
1 files changed, 1 insertions, 0 deletions
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();
}