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

List:       kde-commits
Subject:    kdebase/libkonq
From:       Martin Koller <m.koller () surfeu ! at>
Date:       2005-01-19 19:50:16
Message-ID: 20050119195016.520C215F98 () office ! kde ! org
[Download RAW message or body]

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