From 31328d7f8f8231e613975a692b2ac7a9e5db88aa Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Mon, 12 Nov 2012 02:03:58 +0100 Subject: [PATCH] Fix compilation with Qt 4.6 --- src/kthumb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kthumb.cpp b/src/kthumb.cpp index 0ab4eab2..66cdad24 100644 --- a/src/kthumb.cpp +++ b/src/kthumb.cpp @@ -133,7 +133,7 @@ QImage KThumb::extractImage(int frame, int width, int height) { if (m_producer == NULL) { QImage img(width, height, QImage::Format_ARGB32_Premultiplied); - img.fill(Qt::black); + img.fill(QColor(Qt::black).rgb()); return img; } return getProducerFrame(frame, (int) (height * m_ratio + 0.5), width, height); @@ -226,7 +226,7 @@ QImage KThumb::getFrame(Mlt::Frame *frame, int frameWidth, int displayWidth, int } else { image = image.scaled(displayWidth, height, Qt::IgnoreAspectRatio).rgbSwapped(); } - p.fill(QColor(100, 100, 100, 70)); + p.fill(QColor(100, 100, 100, 70).rgba()); QPainter painter(&p); painter.drawImage(p.rect(), image); painter.end(); @@ -305,7 +305,7 @@ void KThumb::getThumbs(KUrl url, int startframe, int endframe, int width, int he if (url.isEmpty()) return; QPixmap image(width, height); Mlt::Producer m_producer(url.path().toUtf8().constData()); - image.fill(Qt::black); + image.fill(QColor(Qt::black).rgb()); if (m_producer.is_blank()) { emit thumbReady(startframe, image); -- 2.39.2