From 33913412e6954ad4320d288b45122e70a3ce9d0e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Thu, 25 Sep 2008 16:23:37 +0000 Subject: [PATCH] minor fixes svn path=/branches/KDE4/; revision=2412 --- src/clipproperties.cpp | 2 ++ src/kthumb.cpp | 3 ++- src/projectitem.cpp | 19 +++++++++---------- src/renderer.cpp | 2 +- src/wizard.cpp | 3 ++- 5 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/clipproperties.cpp b/src/clipproperties.cpp index 8b6c6a31..b19b0da0 100644 --- a/src/clipproperties.cpp +++ b/src/clipproperties.cpp @@ -48,6 +48,8 @@ ClipProperties::ClipProperties(DocClipBase *clip, Timecode tc, double fps, QWidg m_view.clip_path->setText(url.path()); m_view.clip_description->setText(m_clip->description()); QMap 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")); diff --git a/src/kthumb.cpp b/src/kthumb.cpp index 1975dd83..57aaf4a8 100644 --- a/src/kthumb.cpp +++ b/src/kthumb.cpp @@ -324,6 +324,7 @@ QPixmap KThumb::getFrame(Mlt::Producer *producer, int framepos, int width, int h p.fill(Qt::red); return p; } + mlt_image_format format = mlt_image_yuv422; int frame_width = 0; int frame_height = 0; @@ -337,7 +338,7 @@ QPixmap KThumb::getFrame(Mlt::Producer *producer, int framepos, int width, int h 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); diff --git a/src/projectitem.cpp b/src/projectitem.cpp index ffe030e5..e2daf636 100644 --- a/src/projectitem.cpp +++ b/src/projectitem.cpp @@ -211,16 +211,15 @@ void ProjectItem::setProperties(const QMap < QString, QString > &attributes, con 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()); + } + } } diff --git a/src/renderer.cpp b/src/renderer.cpp index a4321942..3fac236b 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -561,7 +561,7 @@ void Render::getFileProperties(const QDomElement &xml, const QString &clipId) { 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); diff --git a/src/wizard.cpp b/src/wizard.cpp index 08eb90c3..74c6c98b 100644 --- a/src/wizard.cpp +++ b/src/wizard.cpp @@ -216,8 +216,9 @@ void Wizard::slotCheckMlt() { 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("%1
").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); -- 2.39.2