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 () |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from KCoreConfigSkeleton | |
virtual void | usrReadConfig () |
virtual void | usrSetDefaults () |
virtual bool | usrUseDefaults (bool b) |
virtual void | usrWriteConfig () |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.