+ if (m_clipType == PLAYLIST) {
+ // Check if the playlist xml contains a proxy inside, and inform user
+ if (playlistHasProxies(m_clip->fileURL().path())) {
+ prefix = i18n("Contains proxies") + " / ";
+ }
+ }
+ }
+ else if (attributes.contains("frame_size")) slotSetToolTip();
+
+ if (attributes.contains("duration")) {
+ GenTime duration = GenTime(attributes.value("duration").toInt(), KdenliveSettings::project_fps());
+ QString itemdata = data(0, DurationRole).toString();
+ if (itemdata.contains('/')) itemdata = itemdata.section('/', 0, 0) + "/ ";
+ else itemdata.clear();
+ if (prefix.isEmpty()) prefix = itemdata;
+ setData(0, DurationRole, prefix + Timecode::getEasyTimecode(duration, KdenliveSettings::project_fps()));
+ m_clip->setDuration(duration);
+ } else {
+ // No duration known, use an arbitrary one until it is.