]> git.sesse.net Git - kdenlive/commitdiff
use solid line for clip selection, looks slightly better...
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 25 Feb 2008 22:40:38 +0000 (22:40 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 25 Feb 2008 22:40:38 +0000 (22:40 +0000)
svn path=/branches/KDE4/; revision=1942

src/clipitem.cpp

index e0040b2a35ec800be8882884319c177701fdccba..537a88f3ec0bc9b9f9a4820d00f8883f54d96413 100644 (file)
@@ -311,15 +311,17 @@ int ClipItem::endPos()
       painter->setFont(font);
     }
 
-    QRectF txtBounding = painter->boundingRect(br, Qt::AlignCenter, " " + m_clipName + " ");
-    painter->fillRect(txtBounding, QBrush(QColor(255,255,255,150)));
-    painter->drawText(txtBounding, Qt::AlignCenter, m_clipName);
-
     pen.setColor(Qt::red);
-    pen.setStyle(Qt::DashDotDotLine); //Qt::DotLine);
+    //pen.setStyle(Qt::DashDotDotLine); //Qt::DotLine);
     if (isSelected()) painter->setPen(pen);
         painter->setClipRect(option->exposedRect);
         painter->drawPath(roundRectPathUpper.united(roundRectPathLower).intersected(clippath));
+
+    QRectF txtBounding = painter->boundingRect(br, Qt::AlignCenter, " " + m_clipName + " ");
+    painter->fillRect(txtBounding, QBrush(QColor(255,255,255,150)));
+    painter->drawText(txtBounding, Qt::AlignCenter, m_clipName);
+
+
         //painter->fillRect(startpixel,0,startpixel+endpixel,(int)br.height(),  QBrush(QColor(255,255,255,150)));
     //painter->fillRect(QRect(br.x(), br.y(), roundingX, roundingY), QBrush(QColor(Qt::green)));