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

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/kopete/contactlist
From:       Roman Jarosz <kedgedev () gmail ! com>
Date:       2009-03-31 21:08:54
Message-ID: 1238533734.993751.27750.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 947603 by rjarosz:

Small speedup.



 M  +3 -3      kopeteitemdelegate.cpp  


--- trunk/KDE/kdenetwork/kopete/kopete/contactlist/kopeteitemdelegate.cpp #947602:947603
@@ -248,7 +248,7 @@
 									nominalImageRect.width() - offset.x() * 2,
 									nominalImageRect.height() - offset.y() * 2 );
 
-					painter->drawPixmap( imageRect, photoPixmap, QRectF( photoPixmap.rect() ) );
+					painter->drawPixmap( imageRect.topLeft(), photoPixmap );
 				}
 			}
 			else
@@ -265,7 +265,7 @@
 									nominalImageRect.width() - offset.x() * 2,
 									nominalImageRect.height() - offset.y() * 2 );
 
-					painter->drawPixmap( imageRect, metaContactImage, QRectF( metaContactImage.rect() ) );
+					painter->drawPixmap( imageRect.topLeft(), metaContactImage );
 				}
 			}
 		}
@@ -475,7 +475,7 @@
 							{
 								QPixmap contactPixmap = contactIcon.pixmap( IconSize, IconSize );
 								painter->setClipRect( pixmapRect.intersected( drawingRect ) );
-								painter->drawPixmap( pixmapRect, contactPixmap, QRectF( contactPixmap.rect() ) );
+								painter->drawPixmap( pixmapRect.topLeft(), contactPixmap );
 							}
 
 							offsetX += IconSize + IconMarginH;
[prev in list] [next in list] [prev in thread] [next in thread] 

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