Bug 60749

Summary: [PATCH] Button colors not shown
Product: [Applications] kcalc Reporter: Malte S. Stretz <mss>
Component: generalAssignee: Bernd Wuebben <wuebben>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Patch against kdeutils-3.1.2/kcalc/kcalc.cpp

Description Malte S. Stretz 2003-07-04 16:24:32 UTC
Version:           1.3.2 (using KDE 3.1.2)
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:          Linux (i686) release 2.4.18

Hmmm... there are quite some old bugs about the colorized buttons but all were for KDE 2 and long CLOSED.

The simple problem I have is that the color settings for the buttons aren't applied; I still have the boring grey buttons. But when the KCalc window is redrawn (esp. when it starts up or is restored), the colors shortly flash up. But only a small "shadow" below the captions of the hex buttons will stay...

Cheers,
Malte
Comment 1 Malte S. Stretz 2003-07-04 21:18:04 UTC
Created attachment 1943 [details]
Patch against kdeutils-3.1.2/kcalc/kcalc.cpp

This actually seems to be a bug in the dotNET style I use -- it just doesn't
show the paletteBackgroundColor as button color.

Anyway, here's a small patch to fix some glitches in KCalc:
 * Use QPushButton->setPaletteBackgroundColor() instead of ->setPalette()
 * Remove an unused string var in QtCalculator::readSettings()
 * Unify the capitalization of config names.
Comment 2 Maksim Orlovich 2003-07-15 02:09:19 UTC
Fixed inside dotNET 2003/07/08 . I managed to not CCMAIL the commit 
message properly :-)