#include <krootprop.h>
Public Methods | |
| KRootProp (const QString &rProp=QString::null) | |
| ~KRootProp () | |
| void | setProp (const QString &rProp="") |
| QString | prop () const |
| void | destroy () |
| QString | readEntry (const QString &rKey, const QString &pDefault=QString::null) const |
| int | readNumEntry (const QString &rKey, int nDefault=0) const |
| QFont | readFontEntry (const QString &rKey, const QFont *pDefault=0) const |
| QColor | readColorEntry (const QString &rKey, const QColor *pDefault=0) const |
| QString | writeEntry (const QString &rKey, const QString &rValue) |
| QString | writeEntry (const QString &rKey, int nValue) |
| QString | writeEntry (const QString &rKey, const QFont &rFont) |
| QString | writeEntry (const QString &rKey, const QColor &rColor) |
| QString | removeEntry (const QString &rKey) |
| QStringList | listEntries () const |
| void | sync () |
A companion to the KConfig class.
The KRootProp class is used for reading and writing configuration entries to properties on the root window.
All configuration entries are of the form "key=value".
Definition at line 45 of file krootprop.h.
|
|
Constructs a KRootProp object for the property
|
|
|
Destructs the KRootProp object. Writes back any dirty configuration entries. |
|
|
Destroys the property completely. I.e. all entries will be cleared and the property will be removed from the root window. |
|
|
Returns a list of all keys.
|
|
|
Returns the name of the property under which keys are searched.
|
|
||||||||||||
|
Reads a QColor.
Reads the value of an entry specified by
|
|
||||||||||||
|
Reads the value of an entry specified by
|
|
||||||||||||
|
Reads a QFont value.
Reads the value of an entry specified by
|
|
||||||||||||
|
Reads a numerical value.
Reads the value of an entry specified by
|
|
|
Removes an entry.
|
|
|
Sets the property in which keys will be searched.
|
|
|
Flushes the entry cache. Writes back dirty configuration entries to the current property, This is called automatically from the destructor. |
|
||||||||||||
|
Writes the (key/value) pair. Same as above, but writes a color.
|
|
||||||||||||
|
Writes the (key/value) pair. Same as above, but writes a font.
|
|
||||||||||||
|
Writes the (key/value) pair. Same as above, but writes a numerical value.
|
|
||||||||||||
|
Writes a (key/value) pair. This is stored to the current property when destroying the config object or when calling sync().
|
1.2.18