+ int type = xml.attribute("type").toInt();
+ m_clipType = (CLIPTYPE) type;
+ m_name = xml.attribute("name");
+ m_xml.setAttribute("id", QString::number(id));
+ KUrl url = KUrl(xml.attribute("resource"));
+ int out = xml.attribute("out").toInt();
+ if (out != 0) setDuration(GenTime(out, 25));
+ if (m_name.isEmpty()) m_name = url.fileName();
+ if (!url.isEmpty())
+ m_thumbProd = new KThumb(url, KdenliveSettings::track_height() * KdenliveSettings::project_display_ratio(), KdenliveSettings::track_height());
+}
+
+DocClipBase::DocClipBase(const DocClipBase& clip)
+{
+ m_xml = clip.toXML();
+ m_id = clip.getId();
+ m_clipType = clip.clipType();
+ m_name = clip.name();
+ m_duration = clip.duration();
+}
+
+DocClipBase & DocClipBase::operator=(const DocClipBase & clip)
+{
+ DocClipBase::operator=(clip);
+ m_xml = clip.toXML();
+ m_id = clip.getId();
+ m_clipType = clip.clipType();
+ m_name = clip.name();
+ m_duration = clip.duration();
+ return *this;