Bug 177552

Summary: KColorButton Ignores Default Colour Choice
Product: [Frameworks and Libraries] kdelibs Reporter: Keith Rusler <xzekecomax>
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Keith Rusler 2008-12-12 01:06:45 UTC
Version:            (using Devel)
Compiler:          GCC 4.3.2 
OS:                Linux
Installed from:    Compiled sources

Create a new QWidget in Qt Designer. Drag a KColorButton on to it. Set the color property to any colour. Then set the default color to the same color as previously did. And run the ui and select the button and change the colour and click use default checkbox and hit okay. The colour on the button goes back to invalid. And the default colour should actually be 0, 0, 0, 0 not 0, 0, 0, 255. Because that is black. And you have to change another dig in either red, blue or green to get it to display black.
Comment 1 Christoph Feck 2009-07-03 00:49:29 UTC
SVN commit 990663 by cfeck:

Show correct color even when "default" was selected

BUG: 177552


 M  +4 -1      kcolorbutton.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=990663
Comment 2 Christoph Feck 2009-07-03 00:54:49 UTC
Keith, there is no "default" for the default value in KDE code. If you get a default color of 0,0,0,255 instead of 0,0,0,0 then this is done inside Designer.
Comment 3 Christoph Feck 2009-07-03 00:56:43 UTC
SVN commit 990671 by cfeck:

Show correct color even when "default" was selected (backport r990663)

CCBUG: 177552


 M  +4 -1      kcolorbutton.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=990671