]> git.sesse.net Git - kdenlive/commitdiff
on monitor geometry editing: fix compilation with Qt < 4.6
authorTill Theato <root@ttill.de>
Mon, 3 Jan 2011 18:41:07 +0000 (18:41 +0000)
committerTill Theato <root@ttill.de>
Mon, 3 Jan 2011 18:41:07 +0000 (18:41 +0000)
svn path=/trunk/kdenlive/; revision=5251

src/onmonitoritems/onmonitorrectitem.cpp

index 45f39a7b9e7d44f9a771f4a4286460c88bb14ae8..ddbb97fc261e5597609908f585ca0d4125ca53c9 100644 (file)
@@ -198,10 +198,18 @@ void OnMonitorRectItem::slotMouseMoved(QGraphicsSceneMouseEvent* event)
                 if (p - pos() != QPointF()) {
                     if (diffWidth > diffHeight) {
                         if (m_mode != ResizeBottomLeft)
+#if QT_VERSION >= 0x040600
                             setY(p.y() - r.height() + rect().normalized().height());
+#else
+                            setPos(x(), p.y() - r.height() + rect().normalized().height());
+#endif
                     } else {
                         if (m_mode != ResizeTopRight)
+#if QT_VERSION >= 0x040600
                             setX(p.x() - r.width() + rect().normalized().width());
+#else
+                            setPos(p.x() - r.width() + rect().normalized().width(), y());
+#endif
                     }
                 }
             }