KDEUI
KConfigSkeleton Class Reference
Class for handling preferences settings for an application. More...
#include <kconfigskeleton.h>
Inheritance diagram for KConfigSkeleton:

Classes | |
class | ItemColor |
Class for handling a color preferences item. More... | |
class | ItemFont |
Class for handling a font preferences item. More... | |
Public Member Functions | |
ItemColor * | addItemColor (const QString &name, QColor &reference, const QColor &defaultValue=QColor(128, 128, 128), const QString &key=QString()) |
ItemFont * | addItemFont (const QString &name, QFont &reference, const QFont &defaultValue=QFont(), const QString &key=QString()) |
KConfigSkeleton (KSharedConfig::Ptr config, QObject *parent=0) | |
KConfigSkeleton (const QString &configname=QString(), QObject *parent=0) |
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
KConfigSkeleton::KConfigSkeleton | ( | const QString & | configname = QString() , |
|
QObject * | parent = 0 | |||
) | [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.
KConfigSkeleton::KConfigSkeleton | ( | KSharedConfig::Ptr | config, | |
QObject * | parent = 0 | |||
) | [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: