From: Jean-Baptiste Mardelle Date: Wed, 12 Dec 2012 16:09:09 +0000 (+0100) Subject: Improve drawing of clips to better see if there is an empty frame between 2 clips... X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7ec6e64b721ef8036013afa2b49f43c5fa7e15c0;p=kdenlive Improve drawing of clips to better see if there is an empty frame between 2 clips:http://www.kdenlive.org/mantis/view.php?id=2855 --- diff --git a/src/clipitem.cpp b/src/clipitem.cpp index 0171874b..47a0c73e 100644 --- a/src/clipitem.cpp +++ b/src/clipitem.cpp @@ -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); }