From: Marco Gittler Date: Mon, 3 Mar 2008 12:39:29 +0000 (+0000) Subject: not use deprecated function anymore in initeffects/store z-value in titledocument X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4ad3ba79994447949f666bec40a9940c6dbe0ecb;p=kdenlive not use deprecated function anymore in initeffects/store z-value in titledocument svn path=/branches/KDE4/; revision=1988 --- diff --git a/src/initeffects.cpp b/src/initeffects.cpp index f43f0a1d..04ea087d 100644 --- a/src/initeffects.cpp +++ b/src/initeffects.cpp @@ -65,11 +65,11 @@ Mlt::Repository *initEffects::parseEffectFiles(EffectsList *audioEffectList, Eff delete filters; delete producers; - KGlobal::dirs()->addResourceType("ladspa_plugin", "lib/ladspa"); - KGlobal::dirs()->addResourceDir("ladspa_plugin", "/usr/lib/ladspa"); - KGlobal::dirs()->addResourceDir("ladspa_plugin", "/usr/local/lib/ladspa"); - KGlobal::dirs()->addResourceDir("ladspa_plugin", "/opt/lib/ladspa"); - KGlobal::dirs()->addResourceDir("ladspa_plugin", "/opt/local/lib/ladspa"); + KGlobal::dirs()->addResourceType("ladspa_plugin", 0, "lib/ladspa"); + KGlobal::dirs()->addResourceDir("ladspa_plugin", 0, "/usr/lib/ladspa"); + KGlobal::dirs()->addResourceDir("ladspa_plugin", 0, "/usr/local/lib/ladspa"); + KGlobal::dirs()->addResourceDir("ladspa_plugin", 0, "/opt/lib/ladspa"); + KGlobal::dirs()->addResourceDir("ladspa_plugin", 0, "/opt/local/lib/ladspa"); kDebug() << "// INIT EFFECT SEARCH" << endl; diff --git a/src/titledocument.cpp b/src/titledocument.cpp index 5a71bfe6..c334b715 100644 --- a/src/titledocument.cpp +++ b/src/titledocument.cpp @@ -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); }