class KColorGroup

Similar to QColorGroup, with color write accessors. More...

Definition#include <kcolorgroup.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

A KColorGroup provides seven colors for widgets: foreground, background, light, mid, dark, text and base - exactly as the QColorGroup. KColorGroup adds the possibility to store the KColorGroup via the KConfig mechanism. It would be nicer if KColorGroup was derived from QColorGroup, but QColorGroup provides no write access to its data members except via the constructor.

 KColorGroup ()

Construct a KColorGroup with all colors black

 KColorGroup ( const KColorGroup& )

Copy-constructor

KColorGroup&  operator= ( const KColorGroup& )

assignment operator

KColorGroup ()

KColorGroup destructor

const QColor&  foreground ()

[const]

Retrieve the foreground value.

const QColor&  background ()

[const]

Retrieve the background value.

const QColor&  light ()

[const]

Retrieve the light value.

const QColor&  mid ()

[const]

Retrieve the mid value.

const QColor&  dark ()

[const]

Retrieve the dark value.

const QColor&  text ()

[const]

Retrieve the text value.

const QColor&  base ()

[const]

Retrieve the base value.

bool  operator== ( const KColorGroup& rColorGroup )

[const]

Compare two KColorGroups.

bool  operator!= ( const KColorGroup& rColorGroup )

[const]

Compare two KColorGroups.

void  load ( KConfig& rConfig, QString* pString = 0L )

Load color values from a KConfig object. The group "ColorGroup" is used. If pString is not 0, the value of pString is prepended to the group name.

void  save ( KConfig& rConfig, QString* pString = 0L )

Save color values to a KConfig object. The group "ColorGroup" is used. If pString is not 0, the value of pString is prepended to the group name.

const QColorGroup * colorGroup ()

[const]

Return the QColorGroup object (for drawing shades e.g.).