]> git.sesse.net Git - kdenlive/commitdiff
Improve drawing of clips to better see if there is an empty frame between 2 clips...
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 12 Dec 2012 16:09:09 +0000 (17:09 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 12 Dec 2012 16:09:09 +0000 (17:09 +0100)
src/clipitem.cpp

index 0171874b176aed77a5ffa4d0b41a5391c18565e0..47a0c73e14ed97de696cd819fa2f1f35142d6c67 100644 (file)
@@ -794,7 +794,7 @@ void ClipItem::paint(QPainter *painter,
     QPainterPath p;
     p.addRect(mappedExposed);
     QPainterPath q;
-    q.addRoundedRect(mapped.adjusted(0, 0, -0.5, 0), 3, 3);
+    q.addRoundedRect(mapped, 3, 3);
     painter->setClipPath(p.intersected(q));
     painter->setPen(Qt::NoPen);
     painter->fillRect(mappedExposed, paintColor);
@@ -1016,7 +1016,7 @@ void ClipItem::paint(QPainter *painter,
     painter->setRenderHint(QPainter::Antialiasing, true);
     framePen.setWidthF(1.5);
     painter->setPen(framePen);
-    painter->drawRoundedRect(mapped.adjusted(0, 0, -0.5, -0.5), 3, 3);
+    painter->drawRoundedRect(mapped.adjusted(0.5, 0, -0.5, 0), 3, 3);
 }