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

List:       kde-bugs-dist
Subject:    [Bug 95843] Garbage shown when rename(F2) a file
From:       Martin Koller <m.koller () surfeu ! at>
Date:       2005-01-19 19:50:26
Message-ID: 20050119195026.5838.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=95843         
m.koller surfeu at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From m.koller surfeu at  2005-01-19 20:50 -------
CVS commit by mkoller: 

BUG: 95843
Don't set an empty QPixmap as the result is undefined


  M +10 -1     konq_propsview.cc   1.86


--- kdebase/libkonq/konq_propsview.cc  #1.85:1.86
 @ -541,5 +541,14  @ void KonqPropsView::applyColors(QWidget 
         widget->setPaletteBackgroundColor( bgColor( widget ) );
     else
-        widget->setPaletteBackgroundPixmap( loadPixmap() );
+    {
+        QPixmap pix = loadPixmap();
+        // don't set an null pixmap, as this leads to
+        // undefined results with regards to the background of widgets
+        // that have the iconview as a parent and on the iconview itself
+        // e.g. the rename textedit widget when renaming a QIconViewItem
+        // Qt-issue: N64698
+        if ( ! pix.isNull() )
+            widget->setPaletteBackgroundPixmap( pix );
+    }
 
     if ( m_textColor.isValid() )
[prev in list] [next in list] [prev in thread] [next in thread] 

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