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

List:       kde-core-devel
Subject:    Re: qt-copy patch: fix alternate rows in Q{List,Tree}Widget
From:       Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date:       2007-09-18 22:33:11
Message-ID: fcpjn7$oro$1 () sea ! gmane ! org
[Download RAW message or body]

I'd like to add the following patch to qt-copy. Can I update the 
existing patch 0191 or do I need to create a new patch?

Index: src/gui/itemviews/qitemdelegate.cpp
===================================================================
--- src/gui/itemviews/qitemdelegate.cpp (revision 713489)
+++ src/gui/itemviews/qitemdelegate.cpp (working copy)
@@ -635,10 +635,10 @@

      QPen pen = painter->pen();
      QPalette::ColorGroup cg = option.state & QStyle::State_Enabled
-                              ? QPalette::Normal : QPalette::Disabled;
-    if (cg == QPalette::Normal
-          && !(option.state & QStyle::State_Active))
-        cg = QPalette::Inactive;
+                              ? option.palette.currentColorGroup()
+                              : QPalette::Disabled;
      if (option.state & QStyle::State_Selected) {
+       if (cg == QPalette::Normal
+             && !(option.state & QStyle::State_Active))
+           cg = QPalette::Inactive;
          painter->fillRect(rect, option.palette.brush(cg,
                            QPalette::Highlight));
          painter->setPen(option.palette.color(cg,
                          QPalette::HighlightedText));
      } else {
===================================================================

(Yes, I have already sent this to qt-bugs.)

-- 
Matthew
"Non sequitor. Your facts are out of order." -- Nomad

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

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