m_view.clip_path->setText(url.path());
m_view.clip_description->setText(m_clip->description());
QMap <QString, QString> props = m_clip->properties();
+ // disable advanced properties until implemented
+ m_view.tabWidget->widget(ADVANCEDTAB)->setEnabled(false);
if (props.contains("audiocodec"))
m_view.clip_acodec->setText(props.value("audiocodec"));
p.fill(Qt::red);
return p;
}
+
mlt_image_format format = mlt_image_yuv422;
int frame_width = 0;
int frame_height = 0;
QImage image((uchar *)new_image, frame_width, frame_height, QImage::Format_ARGB32);
if (!image.isNull()) {
- pix = pix.fromImage(image.rgbSwapped());
+ pix = QPixmap::fromImage(image.rgbSwapped());
} else
pix.fill(Qt::red);
if ((m_clipType == AV || m_clipType == AUDIO) && KdenliveSettings::audiothumbnails()) m_clip->slotRequestAudioThumbs();
m_clip->setProperties(attributes);
- /*
- m_metadata = metadata;
-
- if (m_metadata.contains("description")) {
- setDescription (m_metadata["description"]);
- }
- else if (m_metadata.contains("comment")) {
- setDescription (m_metadata["comment"]);
- }
- */
+ if (m_clip->description().isEmpty()) {
+ if (metadata.contains("description")) {
+ m_clip->setProperty("description", metadata["description"]);
+ setText(2, m_clip->description());
+ } else if (metadata.contains("comment")) {
+ m_clip->setProperty("description", metadata["comment"]);
+ setText(2, m_clip->description());
+ }
+ }
}
QImage image((uchar *)new_image, frame_width, frame_height, QImage::Format_ARGB32);
if (!image.isNull()) {
- pix = pix.fromImage(image.rgbSwapped());
+ pix = QPixmap::fromImage(image.rgbSwapped());
} else
pix.fill(Qt::black);
if (!result.contains("sdl") || !result.contains("sdl_preview")) errorMessage.append(i18n("MLT's SDL module not found. Please check your MLT install. Kdenlive will not work until this issue is fixed.\n"));
if (!errorMessage.isEmpty()) {
+ errorMessage.prepend(QString("<b>%1</b><br>").arg(i18n("Fatal Error")));
QLabel *pix = new QLabel();
- pix->setPixmap(KIcon("process-stop").pixmap(30));
+ pix->setPixmap(KIcon("dialog-error").pixmap(30));
QLabel *label = new QLabel(errorMessage);
label->setWordWrap(true);
m_startLayout->addSpacing(40);