Version: (using KDE KDE 3.3.2) Installed from: Debian testing/unstable Packages OS: Linux I currently make a small applet with KLeds. But KLed ignores the background-pixmap I previously set by setPaletteBackgroundPixmap(). (This has worked with all QT-* things, to make them look pseudo transparent). So I looked in the source of the version I use (3.3.2) and the very current cvs version. In both I found something like this: tmpMap = new QPixmap(width + 6, width + 6); tmpMap->fill(paletteBackgroundColor()); paint.begin(tmpMap); This creates the pixmap, but only uses paletteBackgroundColor. In the whole kled source paletteBackgroundPixmap is never used. I just start coding with KDE/QT (~1/2Y), so I am currently not able to make a patch...
A test app would be nice
Actually, never mind, I know of a nice way of testing it already
Ugh. This is actually very hard to fix because of how the painting gets done, sorry.
I have changed it a bit: I look wether a background-pixmap is set, if so, scale it up and use it, else fill it with the background color. But this origin-thing is not covered at all...
Still relevant to recent KDE version? If not please close the bug. Thanks, Lex.
SVN commit 1178386 by cfeck: Cleanup KLed Code improvements: * massive code reduction by using Qt gradients * simplify cachedPixmap handling * remove "builtin" benchmark Bug fixes: * fix background, now uses transparency * fix cache not updated on look changes * fix cache not updated on resize * fix cropped appearance * fix alignment inside margins Visual improvements: * use consistent bevelled borders * use SmallIconSize as sizeHint * use 0° degree light angle (same as Oxygen and many other styles) * make border width relative to size BUG: 98719 FIXED-IN: 4.6.0 M +100 -400 kled.cpp M +12 -0 kled.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1178386
See http://reviewboard.kde.org/r/5369/