From: Till Theato Date: Mon, 3 Jan 2011 18:41:07 +0000 (+0000) Subject: on monitor geometry editing: fix compilation with Qt < 4.6 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2552e998168e3dfde5c4a515a9cebae1bb25d8d0;p=kdenlive on monitor geometry editing: fix compilation with Qt < 4.6 svn path=/trunk/kdenlive/; revision=5251 --- diff --git a/src/onmonitoritems/onmonitorrectitem.cpp b/src/onmonitoritems/onmonitorrectitem.cpp index 45f39a7b..ddbb97fc 100644 --- a/src/onmonitoritems/onmonitorrectitem.cpp +++ b/src/onmonitoritems/onmonitorrectitem.cpp @@ -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 } } }