[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/knewstuff/knewstuff2/ui
From: Laurent Montel <montel () kde ! org>
Date: 2008-08-11 13:13:48
Message-ID: 1218460428.283534.870.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 845312 by mlaurent:
Not necessary to scale a null image (create warning)
and not necessary to store it when null
M +2 -0 itemsmodel.cpp
--- trunk/KDE/kdelibs/knewstuff/knewstuff2/ui/itemsmodel.cpp #845311:845312
@@ -144,6 +144,8 @@
void ItemsModel::slotEntryPreviewLoaded(const QString &url, const QPixmap & pix)
{
+ if( pix.isNull())
+ return;
QImage image = pix.toImage();
m_largePreviewImages.insert(url, image);
m_previewImages.insert(url, image.scaled(64, 64, Qt::KeepAspectRatio));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic