]> git.sesse.net Git - kdenlive/commitdiff
Slight change in display of clip names in timeline for better usability
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 18 Oct 2008 17:11:39 +0000 (17:11 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 18 Oct 2008 17:11:39 +0000 (17:11 +0000)
svn path=/branches/KDE4/; revision=2476

src/clipitem.cpp

index b30ca3201ea6bdc24afbc578f941dcc84f59bad0..615a3a84ad56e3b03b0d3bd16c8b409690ca0208 100644 (file)
@@ -597,12 +597,11 @@ void ClipItem::paint(QPainter *painter,
         painter->setPen(Qt::black);
     }
 
-
     // Draw clip name
-    QRectF txtBounding = painter->boundingRect(mapped, Qt::AlignHCenter | Qt::AlignTop, " " + m_clipName + " ");
-    //painter->fillRect(txtBounding, QBrush(QColor(255, 255, 255, 150)));
-    painter->setPen(QColor(0, 0, 0, 180));
-    painter->drawText(txtBounding, Qt::AlignCenter, m_clipName);
+    QRectF txtBounding = painter->boundingRect(mapped, Qt::AlignHCenter | Qt::AlignVCenter, " " + m_clipName + " ");
+    painter->fillRect(txtBounding, QBrush(QColor(0, 0, 0, 150)));
+    //painter->setPen(QColor(0, 0, 0, 180));
+    //painter->drawText(txtBounding, Qt::AlignCenter, m_clipName);
     txtBounding.translate(QPointF(1, 1));
     painter->setPen(QColor(255, 255, 255, 255));
     painter->drawText(txtBounding, Qt::AlignCenter, m_clipName);