From kde-commits Sun Feb 24 14:32:23 2008 From: Anne-Marie Mahfouf Date: Sun, 24 Feb 2008 14:32:23 +0000 To: kde-commits Subject: extragear/plasma/applets/frame Message-Id: <1203863543.943406.29468.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120386355002175 SVN commit 778749 by annma: have to revert previous commit as the pic gets smaller and smaller... have to setContentSize() another way... M +1 -3 frame.cpp --- trunk/extragear/plasma/applets/frame/frame.cpp #778748:778749 @@ -253,9 +253,7 @@ const QSize &contentsSize) { Q_UNUSED(option); - - m_pixmapCache = QPixmap::fromImage(m_picture).scaled(contentsSize, Qt::KeepAspectRatio, Qt::FastTransformation); - setContentSize(m_pixmapCache.rect().size()); + m_pixmapCache = QPixmap(contentsSize); m_pixmapCache.fill(Qt::transparent);