In file ../core/kcolorgroup.h:

## class KColorGroup

> KColorGroup: A collection of color entries for application widgets

### public members:

  | KColorGroup () Construct a KColorGroup with all colors black
  | KColorGroup ( const QColor& rForeground, const QColor& rBackground, const QColor& rLight, const QColor& rMid, const QColor& rDark, const QColor& rText, const QColor& rBase ) Construct a KColorGroup with given colors.
  | ~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 = NULL ) Load color values from a KConfig object.
  void | save ( KConfig & rConfig, QString* pString = NULL ) Save color values to a KConfig object.

## Documentation

> 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 QColor& rForeground, const QColor& rBackground, const QColor& rLight, const QColor& rMid, const QColor& rDark, const QColor& rText, const QColor& rBase )
  Construct a KColorGroup with given colors.

~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 = NULL )
  Load color values from a KConfig object. The group "ColorGroup" is used. If pString is not NULL, the value of pString is prepended to the group name.

void save ( KConfig & rConfig, QString* pString = NULL )
  Save color values to a KConfig object. The group "ColorGroup" is used. If pString is not NULL, the value of pString is prepended to the group name.

#### this class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling