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

List:       kde-commits
Subject:    =?utf-8?q?=5Bdigikam/development/2=2E0=5D_digikam/utils=3A_polis?=
From:       Gilles Caulier <caulier.gilles () gmail ! com>
Date:       2011-03-03 13:30:21
Message-ID: 20110303133021.1FCC9A60C9 () git ! kde ! org
[Download RAW message or body]

Git commit cbbefdb7b8234610dad29bcbbc397296a905c46f by Gilles Caulier.
Committed on 03/03/2011 at 14:30.
Pushed by cgilles into branch 'development/2.0'.

polish

M  +5    -5    digikam/utils/tooltipfiller.cpp     

http://commits.kde.org/digikam/cbbefdb7b8234610dad29bcbbc397296a905c46f

diff --git a/digikam/utils/tooltipfiller.cpp b/digikam/utils/tooltipfiller.cpp
index 2d697ce..67875bc 100644
--- a/digikam/utils/tooltipfiller.cpp
+++ b/digikam/utils/tooltipfiller.cpp
@@ -335,11 +335,7 @@ QString ToolTipFiller::imageInfoTipContents(const ImageInfo& info)
             str += QString(" / ");
 
             int rating = info.rating();
-            if (rating <= 0)
-            {
-                str += QString("---");
-            }
-            else
+            if (rating > RatingMin && rating <= RatingMax)
             {
                 for (int i=0; i<rating; i++)
                 {
@@ -347,6 +343,10 @@ QString ToolTipFiller::imageInfoTipContents(const ImageInfo& info)
                     str += ' ';
                 }
             }
+            else
+            {
+                str += QString("---");
+            }
 
             tip += cnt.cellSpecBeg + i18n("Labels:") + cnt.cellSpecMid + str + cnt.cellSpecEnd;
         }

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

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