From c2cce86fdb2d0b291c3d3bdfa9fac47452153d1a Mon Sep 17 00:00:00 2001 From: ulf69 Date: Tue, 21 Sep 2004 19:47:57 +0000 Subject: added prefwriting prefreading for size and font object --- (limited to 'microkde/kdecore/kprefs.h') diff --git a/microkde/kdecore/kprefs.h b/microkde/kdecore/kprefs.h index 7014bb8..95d2724 100644 --- a/microkde/kdecore/kprefs.h +++ b/microkde/kdecore/kprefs.h @@ -24,6 +24,7 @@ #include #include #include +#include #include class KConfig; @@ -207,6 +208,20 @@ class KPrefs { */ void addItemColor(const QString &key,QColor *reference, const QColor &defaultValue=QColor(128,128,128)); + + /** + Register an item of type QSize. + + @param key Key used in config file. + @param reference Pointer to the variable, which is set by readConfig() + and setDefaults() calls and read by writeConfig() calls. + @param defaultValue Default value, which is used by setDefaults() and + when the config file does not yet contain the key of + this item. + */ + void addItemSize(const QString &key,QSize *reference, + const QSize &defaultValue=QSize()); + /** Register an item of type QFont. -- cgit v0.9.0.2