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

List:       kde-commits
Subject:    branches/extragear/graphics/digikam/digikam
From:       Martin Klapetek <martin.klapetek () gmail ! com>
Date:       2010-07-31 12:36:18
Message-ID: 20100731123618.38110AC783 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1157531 by mklapetek:

Paint a little icon over image in album view if the image is derived from some other \
image

 M  +7 -0      imagedelegate.cpp  


--- branches/extragear/graphics/digikam/digikam/imagedelegate.cpp #1157530:1157531
@@ -50,6 +50,7 @@
 #include "themeengine.h"
 #include "thumbbar.h"
 #include "thumbnailloadthread.h"
+#include <KIcon>
 
 namespace Digikam
 {
@@ -150,6 +151,12 @@
     if (!actualPixmapRect.isNull())
         const_cast<ImageDelegate*>(this)->updateActualPixmapRect(info.id(), \
actualPixmapRect);  
+    // If there is ImageHistory present, paint a small icon over the thumbnail to \
indicate that this is derived image +    if(info.hasImageHistory())
+    {
+        p->drawPixmap(d->pixmapRect.right()-24, d->pixmapRect.bottom()-24, \
KIcon("svn_switch").pixmap(22,22)); +    }
+
     if (!d->ratingRect.isNull())
     {
         drawRating(p, index, d->ratingRect, info.rating(), isSelected);


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

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