# class KConfigSkeleton

###

Module | kdeui
Namespace |
Class | KConfigSkeleton
Inherits | KCoreConfigSkeleton

Class for handling preferences settings for an application. Author Cornelius Schumacher

This class extends KCoreConfigSkeleton by support for GUI types.

### methods

- KConfigSkeleton (configname, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  configname | QString | QString()
  parent | QObject | 0

  Constructor.

  configname - name of config file. If no name is given, the default config file as returned by KGlobal.config() is used.

- KConfigSkeleton (config, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  config | KSharedConfig.Ptr |
  parent | QObject | 0

  Constructor.

  config - configuration object to use.

- KConfigSkeleton (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString | QString()
  a1 | QObject | 0

- KConfigSkeleton (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KSharedConfig.Ptr |
  a1 | QObject | 0

- addItemColor (name, reference, defaultValue, key)

  returns KConfigSkeleton.ItemColor

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  reference | QColor |
  defaultValue | QColor | QColor(128,128,128)
  key | QString | QString()

  Register an item of type QColor.

  name - Name used to identify this setting. Names must be unique.

  reference - Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls.

  defaultValue - Default value, which is used when the config file does not yet contain the key of this item.

  key - Key used in config file. If key is null, name is used as key. Returns The created item

- addItemFont (name, reference, defaultValue, key)

  returns KConfigSkeleton.ItemFont

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  reference | QFont |
  defaultValue | QFont | QFont()
  key | QString | QString()

  Register an item of type QFont.

  name - Name used to identify this setting. Names must be unique.

  reference - Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls.

  defaultValue - Default value, which is used when the config file does not yet contain the key of this item.

  key - Key used in config file. If key is null, name is used as key. Returns The created item