]> git.sesse.net Git - kdenlive/blobdiff - src/graphicsscenerectmove.cpp
More constness fixes [PATCH by Ray Lehtiniemi]
[kdenlive] / src / graphicsscenerectmove.cpp
index 78b6f8914e33245e53753fcf21f986b9a73b36bb..78e7e8548d8f8a27c4fb2930cf71c177e4ac2cd4 100644 (file)
@@ -324,7 +324,7 @@ void GraphicsSceneRectMove::mouseMoveEvent(QGraphicsSceneMouseEvent* e) {
                 setCursor(Qt::OpenHandCursor);
                 break;
             } else if (g->type() == 3 && g->zValue() > -1000) {
-                QRectF r = ((QGraphicsRectItem*)g)->rect();
+                QRectF r = ((const QGraphicsRectItem*)g)->rect();
                 r.translate(g->scenePos());
                 itemFound = true;
                 if ((r.toRect().topLeft() - e->scenePos().toPoint()).manhattanLength() < 6 / zoom) {