Bug 95843 - Garbage shown when rename(F2) a file
Summary: Garbage shown when rename(F2) a file
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: file icon view (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-26 16:47 UTC by Becheru Petru-Ioan
Modified: 2005-01-19 20:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
the picture showing the bug (19.45 KB, image/jpeg)
2004-12-26 16:49 UTC, Becheru Petru-Ioan
Details
konqueror rename screen corruption (6.34 KB, image/png)
2005-01-01 00:00 UTC, Kenyon Ralph
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Becheru Petru-Ioan 2004-12-26 16:47:12 UTC
Version:           3.3.2-0.1 (using KDE KDE 3.3.2)
Installed from:    Unspecified Linux
OS:                Linux

When a want to rename a file in file browser(by pressing F2 or  Rename from menu) appears a little window showing garbage(some pixels that seem to have been taken from the desktop background) (see the picture attached)
Comment 1 Becheru Petru-Ioan 2004-12-26 16:49:15 UTC
Created attachment 8818 [details]
the picture showing the bug

this is the rename bug
Comment 2 Becheru Petru-Ioan 2004-12-26 16:51:17 UTC
When you move your cursor inside that rename window more garbage appears.. :(
Comment 3 Becheru Petru-Ioan 2004-12-26 17:55:04 UTC
i have fedora core 3 (seems i forgot to tell) :))
Comment 4 Stephan Binner 2004-12-31 15:09:01 UTC
Liquid/Baghira style? Try another.
Comment 5 Kenyon Ralph 2004-12-31 23:50:06 UTC
I'm seeing the same thing, not using Liquid/Baghira style.  Using Lipstik style.  Does the same thing no matter what style I use.
Comment 6 Kenyon Ralph 2005-01-01 00:00:36 UTC
Created attachment 8874 [details]
konqueror rename screen corruption
Comment 7 Martin Koller 2005-01-09 17:16:03 UTC
Probably a video driver problem ? Did you try a different X setup, e.g. less colors, etc. ?
Can you check on a different hardware ?
Comment 8 Kenyon Ralph 2005-01-09 19:40:18 UTC
No, I haven't tried any other hardware or drivers.  I'm using an NVidia GeForce FX 5200 (NV34) with their drivers, not the nv ones.  I don't have any other hardware to try, but I may test with the nv drivers sometime.
Comment 9 Florian Roth 2005-01-09 19:52:43 UTC
I've got the same problems here. I use the nvidia drivers and Xorg 6.8.0 with composite extension on gentoo.

I tried using the nv drivers and disabling the composite extension but still having the same problem.
Comment 10 Becheru Petru-Ioan 2005-01-12 17:25:02 UTC
I have Debian GNu/Linux unstable now(i'm the reporer) and i dont have the problem anymore
Comment 11 Paul Worrall 2005-01-18 12:20:23 UTC
Same problem here with radeon video driver.  Have tried different colour depths, resolutions, styles, all with no effect.  Renaming files on the desktop works OK.  Using Konqueror 3.3.2 on gentoo system.
Comment 12 Paul Worrall 2005-01-18 13:31:11 UTC
The problem occurs if you go View -> Configure Background, select 'Picture', but set the picture to a file that does not exist (you can click the browse button and enter any old rubbish in the 'Location' field).  

Konqueror should handle this mis-configuration case without causing the problems reported above.
Comment 13 Martin Koller 2005-01-18 22:18:38 UTC
I can reproduce this also with a simple qt test program: Whenever an empty QPixmap is set as backgroundPixmap, the rename box shows trash.
I'll send a report to the trolls.
Comment 14 Becheru Petru-Ioan 2005-01-19 13:04:21 UTC
Whenever an empty image is set as background, the rename box shows trash but by using the icon view(the tree view is ok-no trash is shown).
Comment 15 Martin Koller 2005-01-19 20:50:23 UTC
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() )