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

List:       kde-commits
Subject:    playground/office/kmymoney/kmymoney2/widgets
From:       Cristian OneČ› <onet.cristian () gmail ! com>
Date:       2009-08-14 18:53:39
Message-ID: 1250276019.965583.26373.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1011476 by conet:

Fixed the drawing of the warning sign for unbalanced transactions.


 M  +2 -2      transaction.cpp  


--- trunk/playground/office/kmymoney/kmymoney2/widgets/transaction.cpp \
#1011475:1011476 @@ -217,7 +217,7 @@
   if(clip.isNull()) {
     clip = KIconLoader::global()->loadIcon("attach", KIconLoader::Small, \
KIconLoader::SizeSmall, KIconLoader::DefaultState);  if(clip.height() > h) {
-      clip.resize(h, h);
+      clip = clip.copy(0, 0, h, h);
     }
   }
 
@@ -236,7 +236,7 @@
   attention.loadFromData(attentionSign, sizeof(attentionSign), 0, 0);
 
   if(attention.height() > h) {
-    attention.resize(h, h);
+     attention = attention.copy(0, 0, h, h);
   }
   painter->drawPixmap(QPoint(r.topRight().x() - h - m, m + (h - \
attention.height())/2 ), attention);  painter->restore();


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

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