[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/koproperty/editors (silent)
From: Jaroslaw Staniek <js () iidea ! pl>
Date: 2005-09-14 21:20:40
Message-ID: 1126732840.016312.13860.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 460712 by staniek:
SVN_SILENT: a fix for updating when a tiny pixmap is selected
M +2 -7 pixmapedit.cpp
--- trunk/koffice/lib/koproperty/editors/pixmapedit.cpp #460711:460712
@@ -97,21 +97,16 @@
{
m_pixmap = value.toPixmap();
if (m_pixmap.isNull() || (m_pixmap.height()<=height())) {
- if (m_pixmap.isNull())
- m_edit->setPixmap(m_pixmap);
-// m_previewPixmap = m_pixmap;
- kdDebug() << "1" << endl;
+ m_edit->setPixmap(m_pixmap);
+ m_previewPixmap = m_pixmap;
}
else {
- kdDebug() << "2" << endl;
QImage img(m_pixmap.convertToImage());
if (!QRect(QPoint(0,0), m_edit->size()*3).contains(m_pixmap.rect())) {
- kdDebug() << "2.1" << m_edit->size() << m_pixmap.rect() <<endl;
img = img.smoothScale(m_edit->size()*3, QImage::ScaleMin);
m_previewPixmap.convertFromImage(img);//preview pixmap is a bit larger
}
else {
- kdDebug() << "2.2" << endl;
m_previewPixmap = m_pixmap;
}
img = img.smoothScale(m_edit->size(), QImage::ScaleMin);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic