]> git.sesse.net Git - kdenlive/blobdiff - src/abstractgroupitem.cpp
* Fix pasting of keyframe effects:
[kdenlive] / src / abstractgroupitem.cpp
index f99fd3ee73ac7c8328511989b827bc5732fe3b3e..d4e9210481b241386a17f504de906f9d4fa61c32 100644 (file)
@@ -147,6 +147,10 @@ void AbstractGroupItem::paint(QPainter *p, const QStyleOptionGraphicsItem *optio
 //virtual
 QVariant AbstractGroupItem::itemChange(GraphicsItemChange change, const QVariant &value)
 {
+    if (change == QGraphicsItem::ItemSelectedChange) {
+        if (value.toBool()) setZValue(10);
+        else setZValue(1);
+    }
     if (change == ItemPositionChange && scene() && parentItem() == 0) {
         // calculate new position.
         const int trackHeight = KdenliveSettings::trackheight();