KDEUI
KConfigSkeleton Class Reference
#include <kconfigskeleton.h>
Inheritance diagram for KConfigSkeleton:
Classes | |
class | ItemColor |
class | ItemFont |
Additional Inherited Members | |
Public Types inherited from KCoreConfigSkeleton | |
typedef ItemLongLong | ItemInt64 |
typedef ItemULongLong | ItemUInt64 |
Signals inherited from KCoreConfigSkeleton | |
void | configChanged () |
Protected Member Functions inherited from KCoreConfigSkeleton | |
virtual void | usrReadConfig () |
virtual void | usrSetDefaults () |
virtual bool | usrUseDefaults (bool b) |
virtual void | usrWriteConfig () |
Detailed Description
Class for handling preferences settings for an application.
This class extends KCoreConfigSkeleton by support for GUI types.
Definition at line 40 of file kconfigskeleton.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
- Parameters
-
configname name of config file. If no name is given, the default config file as returned by KGlobal::config() is used.
Definition at line 26 of file kconfigskeleton.cpp.
|
explicit |
Constructor.
- Parameters
-
config configuration object to use.
Definition at line 31 of file kconfigskeleton.cpp.
Member Function Documentation
KConfigSkeleton::ItemColor * KConfigSkeleton::addItemColor | ( | const QString & | name, |
QColor & | reference, | ||
const QColor & | defaultValue = QColor(128, 128, 128) , |
||
const QString & | key = QString() |
||
) |
Register an item of type QColor.
- Parameters
-
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
Definition at line 101 of file kconfigskeleton.cpp.
KConfigSkeleton::ItemFont * KConfigSkeleton::addItemFont | ( | const QString & | name, |
QFont & | reference, | ||
const QFont & | defaultValue = QFont() , |
||
const QString & | key = QString() |
||
) |
Register an item of type QFont.
- Parameters
-
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
Definition at line 111 of file kconfigskeleton.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.