]> git.sesse.net Git - kdenlive/blobdiff - src/labelitem.cpp
More work on timeline widget
[kdenlive] / src / labelitem.cpp
index 5cd54e2208af88935c1bce2a4503b3f783417fab..3805e18e925a4786b46d12ac0ba2c2365b7601f7 100644 (file)
@@ -30,7 +30,8 @@ LabelItem::LabelItem(QString text, QGraphicsRectItem *parent)
     : QGraphicsSimpleTextItem(" " + text + " ", parent)
 {
   //setParentItem(parent); 
-  setFlags(QGraphicsItem::ItemIgnoresTransformations);
+  //setFlags(QGraphicsItem::ItemIgnoresTransformations);
+  setZValue(200);
 }
 
 int LabelItem::type () const
@@ -44,7 +45,7 @@ int LabelItem::type () const
                            const QStyleOptionGraphicsItem *option,
                            QWidget *widget)
  {
-    kDebug()<<"REPAINT LABEL ------------------------";
+    //kDebug()<<"REPAINT LABEL ------------------------";
     QRectF rep = option->exposedRect;
     //painter->setClipRect(rep);
     QGraphicsRectItem *parent = (QGraphicsRectItem *) parentItem();