diff options
Diffstat (limited to 'qt-ui/profile/divepixmapitem.cpp')
-rw-r--r-- | qt-ui/profile/divepixmapitem.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/profile/divepixmapitem.cpp b/qt-ui/profile/divepixmapitem.cpp index 4405195da..c0eeb8454 100644 --- a/qt-ui/profile/divepixmapitem.cpp +++ b/qt-ui/profile/divepixmapitem.cpp @@ -33,6 +33,12 @@ void DivePictureItem::setPixmap(const QPixmap &pix) 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) |