diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-15 12:32:51 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 10:12:30 +0700 |
commit | cdb447434d6470a2fd619609eb3ee292c6e08b2a (patch) | |
tree | f34704063da7b878b2c726a9a8d127bd951771cc /qt-ui/profile/profilewidget2.cpp | |
parent | 93d464fcb77690d1c63f67332ab9d4727d869304 (diff) | |
download | subsurface-cdb447434d6470a2fd619609eb3ee292c6e08b2a.tar.gz |
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>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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. |