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

List:       kde-commits
Subject:    [oxygen-gtk/1.0] src
From:       Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date:       2011-01-21 20:16:56
Message-ID: 20110121201656.AD7F7A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit 9e2b67966976c8a0064aba70ea722ed9fc0db5ea by Hugo Pereira Da Costa
Pushed by hpereiradacosta into branch 1.0

Changed logic for (tiny) speed-up of cell selection rect.
Added check on isLastVisibleColumn() to decide end-of-rect.
CCBUG: 263144

M  +6    -2    src/oxygenstylewrapper.cpp     

http://commits.kde.org/d1a86b4e/9e2b67966976c8a0064aba70ea722ed9fc0db5ea

diff --git a/src/oxygenstylewrapper.cpp b/src/oxygenstylewrapper.cpp
index 9975ae2..2b90582 100644
--- a/src/oxygenstylewrapper.cpp
+++ b/src/oxygenstylewrapper.cpp
@@ -230,7 +230,7 @@ namespace Oxygen
 
                         // change selection rect so that it does not overlap with \
expander  forceCellStart = true;
-                        if( options & (Selected|Hover) )
+                        if( options&(Selected|Hover) )
                         {
 
                             // get expander size from widget
@@ -245,12 +245,16 @@ namespace Oxygen
 
                         }
 
-                    } else if( cellInfo.isValid() && \
cellInfo.isLeftOfExpanderColumn( treeView ) ) { +                    } else if( \
(options&(Selected|Hover)) && cellInfo.isValid() && cellInfo.isLeftOfExpanderColumn( \
treeView ) ) {  
                         forceCellEnd = true;
 
                     }
 
+                    // check if column is last
+                    if( (options&(Selected|Hover)) && cellInfo.isValid() && \
d.isCellMiddle() && cellInfo.isLastVisibleColumn( treeView ) ) +                    { \
forceCellEnd = true; } +
                 }
 
                 if( options & (Selected|Hover) )


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

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