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 <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-01-15 12:32:51 -02:00 committed by Dirk Hohndel
parent 93d464fcb7
commit cdb447434d

View file

@ -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.