]> git.sesse.net Git - kdenlive/blobdiff - src/titledocument.cpp
not use deprecated function anymore in initeffects/store z-value in titledocument
[kdenlive] / src / titledocument.cpp
index 5a71bfe6575474d5e3786d98531e8387a8f38c24..c334b715e3371eb4bb4a88c882af6990f0191a63 100644 (file)
@@ -71,6 +71,7 @@ bool TitleDocument::saveDocument(const KUrl& url, QGraphicsPolygonItem* startv,
                                transform.m11()).arg(transform.m12()).arg(transform.m13()).arg(transform.m21()).arg(transform.m22()).arg(transform.m23()).arg(transform.m31()).arg(transform.m32()).arg(transform.m33())
                        )
                       );
+        e.setAttribute("z-index", item->zValue());
         pos.appendChild(tr);
 
 
@@ -89,6 +90,8 @@ bool TitleDocument::saveDocument(const KUrl& url, QGraphicsPolygonItem* startv,
         startp.setAttribute("y", startv->pos().y());
         startp.setAttribute("size", startv->sceneBoundingRect().width() / 2);
 
+        startp.setAttribute("z-index", startv->zValue());
+        endp.setAttribute("z-index", endv->zValue());
         main.appendChild(startp);
         main.appendChild(endp);
     }