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

List:       kde-commits
Subject:    playground/base/nepomuk-kde/annotation/lib/gui
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2009-11-17 14:41:26
Message-ID: 1258468886.098474.1690.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1050527 by trueg:

default to nepomuk icon for resource decorations

 M  +6 -2      annotationmodel.cpp  


--- trunk/playground/base/nepomuk-kde/annotation/lib/gui/annotationmodel.cpp #1050526:1050527
@@ -85,8 +85,12 @@
         case Qt::ToolTipRole:
             return annotation->comment() + QString( " (%1)" ).arg( annotation->relevance() );
 
-        case Qt::DecorationRole:
-            return annotation->icon();
+        case Qt::DecorationRole: {
+            QIcon icon = annotation->icon();
+            if ( !icon.isNull() )
+                icon = KIcon( "nepomuk" );
+            return icon;
+        }
 
         case AnnotationRole:
             return QVariant::fromValue( annotation );
[prev in list] [next in list] [prev in thread] [next in thread] 

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