[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdenetwork/kopete/kopete/contactlist
From: Matthias Granberry <matthias.granberry () gmail ! com>
Date: 2005-10-05 16:23:16
Message-ID: 1128529396.338059.18667.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 467564 by granberry:
Don't re-scale photo in contact properties dialog.
M +2 -9 kopetemetacontactlvi.cpp
M +1 -1 kopetemetalvipropswidget.ui
--- branches/KDE/3.5/kdenetwork/kopete/kopete/contactlist/kopetemetacontactlvi.cpp #467563:467564
@@ -520,15 +520,8 @@
{
int photoSize = d->iconSize;
- if ( photoImg.width() > photoImg.height() )
- {
- photoImg = photoImg.smoothScale( photoSize, photoSize * photoImg.height() / photoImg.width() ) ;
- }
- else
- {
- photoImg = photoImg.smoothScale( photoSize * photoImg.width() / photoImg.height() , photoSize );
- }
-
+ photoImg = photoImg.smoothScale( photoSize, photoSize, QImage::ScaleMin );
+
KImageEffect *effect = 0L;
switch ( m_metaContact->status() )
{
--- branches/KDE/3.5/kdenetwork/kopete/kopete/contactlist/kopetemetalvipropswidget.ui #467563:467564
@@ -308,7 +308,7 @@
<string>Photo</string>
</property>
<property name="scaledContents">
- <bool>true</bool>
+ <bool>false</bool>
</property>
</widget>
<widget class="QLayoutWidget" row="0" column="0">
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic