]> git.sesse.net Git - kdenlive/commitdiff
Fix detection of zone for clip->add transition arrows
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 18 Oct 2008 21:01:51 +0000 (21:01 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 18 Oct 2008 21:01:51 +0000 (21:01 +0000)
svn path=/branches/KDE4/; revision=2482

src/clipitem.cpp

index c645fe2acc025864ec2bb282df9ced4a5b02c44a..bbf7540cf3219943871f1a2b84835384863a6139 100644 (file)
@@ -674,10 +674,10 @@ OPERATIONTYPE ClipItem::operationMode(QPointF pos) {
     } else if (qAbs((int)(pos.x() - (rect.x() + rect.width()))) < maximumOffset) {
         setToolTip(i18n("Clip duration: %1s", duration().seconds()));
         return RESIZEEND;
-    } else if (qAbs((int)(pos.x() - (rect.x() + 16))) < maximumOffset && qAbs((int)(pos.y() - (rect.y() + rect.height() / 2 + 5))) < 6) {
+    } else if (qAbs((int)(pos.x() - (rect.x() + 16 / scale))) < maximumOffset && qAbs((int)(pos.y() - (rect.y() + rect.height() / 2 + 9))) < 6) {
         setToolTip(i18n("Add transition"));
         return TRANSITIONSTART;
-    } else if (qAbs((int)(pos.x() - (rect.x() + rect.width() - 21))) < maximumOffset && qAbs((int)(pos.y() - (rect.y() + rect.height() / 2 + 5))) < 6) {
+    } else if (qAbs((int)(pos.x() - (rect.x() + rect.width() - 21 / scale))) < maximumOffset && qAbs((int)(pos.y() - (rect.y() + rect.height() / 2 + 9))) < 6) {
         setToolTip(i18n("Add transition"));
         return TRANSITIONEND;
     }