+
+ m_view.luma_duration->setText(tc.getTimecodeFromFrames(props.value("luma_duration").toInt()));
+ QString lumaFile = props.value("luma_file");
+ QString profilePath = KdenliveSettings::mltpath();
+ profilePath = profilePath.section('/', 0, -3);
+ profilePath += "/lumas/PAL/";
+
+ QDir dir(profilePath);
+ QStringList filter;
+ filter << "*.pgm";
+ const QStringList result = dir.entryList(filter, QDir::Files);
+ QStringList imagefiles;
+ QStringList imagenamelist;
+ int current;
+ foreach(const QString file, result) {
+ m_view.luma_file->addItem(KIcon(profilePath + file), file, profilePath + file);
+ if (!lumaFile.isEmpty() && lumaFile == QString(profilePath + file))
+ current = m_view.luma_file->count() - 1;
+ }
+
+ if (!lumaFile.isEmpty()) {
+ m_view.slide_luma->setChecked(true);
+ m_view.luma_file->setCurrentIndex(current);
+ }
+