summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divepixmapitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/divepixmapitem.cpp')
-rw-r--r--qt-ui/profile/divepixmapitem.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/qt-ui/profile/divepixmapitem.cpp b/qt-ui/profile/divepixmapitem.cpp
index 060f47afb..d2f3a692a 100644
--- a/qt-ui/profile/divepixmapitem.cpp
+++ b/qt-ui/profile/divepixmapitem.cpp
@@ -14,6 +14,7 @@ DivePixmapItem::DivePixmapItem(QObject *parent) : QObject(parent), QGraphicsPixm
DivePictureItem::DivePictureItem(int row, QObject *parent): DivePixmapItem(parent)
{
+ setFlag(ItemIgnoresTransformations);
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
setAcceptsHoverEvents(true);
#else
@@ -39,14 +40,6 @@ void DivePictureItem::setPixmap(const QPixmap &pix)
shadow->setBrush(QColor(Qt::lightGray));
shadow->setFlag(ItemStacksBehindParent);
shadow->setZValue(-2);
-
- setTransformOriginPoint(boundingRect().width()/2, boundingRect().height()/2);
-
- qreal angle = qrand() % 5;
- if (rand() % 2)
- angle *= -1;
-
- setRotation(angle);
}
void DivePictureItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)