[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdenetwork/kopete/libkopete
From:       Matt Rogers <mattr () kde ! org>
Date:       2006-10-11 1:14:17
Message-ID: 1160529257.300479.23396.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 594360 by mattr:

Apply patch from Paulo Fidalgo to resize the image to 96x96
if it is larger than 96x96.

Thanks for the patch! Sorry it took so long to get this committed
CCMAIL: kanniball@zmail.pt



 M  +7 -1      kopetemetacontact.cpp  


--- branches/KDE/3.5/kdenetwork/kopete/libkopete/kopetemetacontact.cpp #594359:594360
@@ -687,7 +687,13 @@
 
 QImage MetaContact::photo() const
 {
-	return picture().image();
+  if( picture().image().width() > 96 && picture().image().height() > 96 )
+    {
+      kdDebug( 14010 )  << k_funcinfo << "Resizing image from " << \
picture().image().width() << " x " << picture().image().height() << endl; +      \
return picture().image().smoothScale(96,96); +    }
+  else
+    return picture().image();
 }
 
 Picture &MetaContact::picture() const


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic