summaryrefslogtreecommitdiffabout
path: root/microkde/kdecore/kprefs.h
Side-by-side diff
Diffstat (limited to 'microkde/kdecore/kprefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdecore/kprefs.h15
1 files changed, 15 insertions, 0 deletions
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
@@ -26,2 +26,3 @@
#include <qfont.h>
+#include <qsize.h>
#include <qstringlist.h>
@@ -209,2 +210,16 @@ class KPrefs {
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());
+
/**