From cdb447434d6470a2fd619609eb3ee292c6e08b2a Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 15 Jan 2014 12:32:51 -0200 Subject: Added the flag to ignore item transformations on the background. The background should be a Pixmap and thus it cannot zoom in or out; this keeps it the same size always, the full height of the scene. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/profile') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index c32feb62c..2b9296d25 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -60,6 +60,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : scene()->addItem(item); } + background->setFlag(QGraphicsItem::ItemIgnoresTransformations); } // Currently just one dive, but the plan is to enable All of the selected dives. -- cgit v1.2.3-70-g09d2