author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /microkde/kdecore/kprefs.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | microkde/kdecore/kprefs.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/microkde/kdecore/kprefs.cpp b/microkde/kdecore/kprefs.cpp index 0220a34..d4010fa 100644 --- a/microkde/kdecore/kprefs.cpp +++ b/microkde/kdecore/kprefs.cpp | |||
@@ -1,71 +1,73 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | // $Id$ | 21 | // $Id$ |
22 | 22 | ||
23 | #include <qcolor.h> | 23 | #include <qcolor.h> |
24 | //Added by qt3to4: | ||
25 | #include <Q3ValueList> | ||
24 | 26 | ||
25 | #include <kconfig.h> | 27 | #include <kconfig.h> |
26 | #include <kstandarddirs.h> | 28 | #include <kstandarddirs.h> |
27 | #include <kglobal.h> | 29 | #include <kglobal.h> |
28 | #include <kdebug.h> | 30 | #include <kdebug.h> |
29 | 31 | ||
30 | #include "kprefs.h" | 32 | #include "kprefs.h" |
31 | 33 | ||
32 | class KPrefsItemBool : public KPrefsItem { | 34 | class KPrefsItemBool : public KPrefsItem { |
33 | public: | 35 | public: |
34 | KPrefsItemBool(const QString &group,const QString &name,bool *,bool defaultValue=true); | 36 | KPrefsItemBool(const QString &group,const QString &name,bool *,bool defaultValue=true); |
35 | virtual ~KPrefsItemBool() {} | 37 | virtual ~KPrefsItemBool() {} |
36 | 38 | ||
37 | void setDefault(); | 39 | void setDefault(); |
38 | void readConfig(KConfig *); | 40 | void readConfig(KConfig *); |
39 | void writeConfig(KConfig *); | 41 | void writeConfig(KConfig *); |
40 | 42 | ||
41 | private: | 43 | private: |
42 | bool *mReference; | 44 | bool *mReference; |
43 | bool mDefault; | 45 | bool mDefault; |
44 | }; | 46 | }; |
45 | 47 | ||
46 | class KPrefsItemInt : public KPrefsItem { | 48 | class KPrefsItemInt : public KPrefsItem { |
47 | public: | 49 | public: |
48 | KPrefsItemInt(const QString &group,const QString &name,int *,int defaultValue=0); | 50 | KPrefsItemInt(const QString &group,const QString &name,int *,int defaultValue=0); |
49 | virtual ~KPrefsItemInt() {} | 51 | virtual ~KPrefsItemInt() {} |
50 | 52 | ||
51 | void setDefault(); | 53 | void setDefault(); |
52 | void readConfig(KConfig *); | 54 | void readConfig(KConfig *); |
53 | void writeConfig(KConfig *); | 55 | void writeConfig(KConfig *); |
54 | 56 | ||
55 | private: | 57 | private: |
56 | int *mReference; | 58 | int *mReference; |
57 | int mDefault; | 59 | int mDefault; |
58 | }; | 60 | }; |
59 | 61 | ||
60 | 62 | ||
61 | class KPrefsItemColor : public KPrefsItem { | 63 | class KPrefsItemColor : public KPrefsItem { |
62 | public: | 64 | public: |
63 | KPrefsItemColor(const QString &group,const QString &name,QColor *, | 65 | KPrefsItemColor(const QString &group,const QString &name,QColor *, |
64 | const QColor &defaultValue=QColor(128,128,128)); | 66 | const QColor &defaultValue=QColor(128,128,128)); |
65 | virtual ~KPrefsItemColor() {} | 67 | virtual ~KPrefsItemColor() {} |
66 | 68 | ||
67 | void setDefault(); | 69 | void setDefault(); |
68 | void readConfig(KConfig *); | 70 | void readConfig(KConfig *); |
69 | void writeConfig(KConfig *); | 71 | void writeConfig(KConfig *); |
70 | 72 | ||
71 | private: | 73 | private: |
@@ -95,107 +97,107 @@ class KPrefsItemFont : public KPrefsItem { | |||
95 | const QFont &defaultValue=QFont("helvetica",12)); | 97 | const QFont &defaultValue=QFont("helvetica",12)); |
96 | virtual ~KPrefsItemFont() {} | 98 | virtual ~KPrefsItemFont() {} |
97 | 99 | ||
98 | void setDefault(); | 100 | void setDefault(); |
99 | void readConfig(KConfig *); | 101 | void readConfig(KConfig *); |
100 | void writeConfig(KConfig *); | 102 | void writeConfig(KConfig *); |
101 | 103 | ||
102 | private: | 104 | private: |
103 | QFont *mReference; | 105 | QFont *mReference; |
104 | QFont mDefault; | 106 | QFont mDefault; |
105 | }; | 107 | }; |
106 | 108 | ||
107 | 109 | ||
108 | class KPrefsItemString : public KPrefsItem { | 110 | class KPrefsItemString : public KPrefsItem { |
109 | public: | 111 | public: |
110 | KPrefsItemString(const QString &group,const QString &name,QString *, | 112 | KPrefsItemString(const QString &group,const QString &name,QString *, |
111 | const QString &defaultValue="", bool isPassword=false); | 113 | const QString &defaultValue="", bool isPassword=false); |
112 | virtual ~KPrefsItemString() {} | 114 | virtual ~KPrefsItemString() {} |
113 | 115 | ||
114 | void setDefault(); | 116 | void setDefault(); |
115 | void readConfig(KConfig *); | 117 | void readConfig(KConfig *); |
116 | void writeConfig(KConfig *); | 118 | void writeConfig(KConfig *); |
117 | 119 | ||
118 | private: | 120 | private: |
119 | QString *mReference; | 121 | QString *mReference; |
120 | QString mDefault; | 122 | QString mDefault; |
121 | bool mPassword; | 123 | bool mPassword; |
122 | }; | 124 | }; |
123 | 125 | ||
124 | 126 | ||
125 | class KPrefsItemStringList : public KPrefsItem { | 127 | class KPrefsItemStringList : public KPrefsItem { |
126 | public: | 128 | public: |
127 | KPrefsItemStringList(const QString &group,const QString &name,QStringList *, | 129 | KPrefsItemStringList(const QString &group,const QString &name,QStringList *, |
128 | const QStringList &defaultValue=QStringList()); | 130 | const QStringList &defaultValue=QStringList()); |
129 | virtual ~KPrefsItemStringList() {} | 131 | virtual ~KPrefsItemStringList() {} |
130 | 132 | ||
131 | void setDefault(); | 133 | void setDefault(); |
132 | void readConfig(KConfig *); | 134 | void readConfig(KConfig *); |
133 | void writeConfig(KConfig *); | 135 | void writeConfig(KConfig *); |
134 | 136 | ||
135 | private: | 137 | private: |
136 | QStringList *mReference; | 138 | QStringList *mReference; |
137 | QStringList mDefault; | 139 | QStringList mDefault; |
138 | }; | 140 | }; |
139 | 141 | ||
140 | 142 | ||
141 | class KPrefsItemIntList : public KPrefsItem { | 143 | class KPrefsItemIntList : public KPrefsItem { |
142 | public: | 144 | public: |
143 | KPrefsItemIntList(const QString &group,const QString &name,QValueList<int> *, | 145 | KPrefsItemIntList(const QString &group,const QString &name,Q3ValueList<int> *, |
144 | const QValueList<int> &defaultValue=QValueList<int>()); | 146 | const Q3ValueList<int> &defaultValue=Q3ValueList<int>()); |
145 | virtual ~KPrefsItemIntList() {} | 147 | virtual ~KPrefsItemIntList() {} |
146 | 148 | ||
147 | void setDefault(); | 149 | void setDefault(); |
148 | void readConfig(KConfig *); | 150 | void readConfig(KConfig *); |
149 | void writeConfig(KConfig *); | 151 | void writeConfig(KConfig *); |
150 | 152 | ||
151 | private: | 153 | private: |
152 | QValueList<int> *mReference; | 154 | Q3ValueList<int> *mReference; |
153 | QValueList<int> mDefault; | 155 | Q3ValueList<int> mDefault; |
154 | }; | 156 | }; |
155 | 157 | ||
156 | 158 | ||
157 | KPrefsItemBool::KPrefsItemBool(const QString &group,const QString &name, | 159 | KPrefsItemBool::KPrefsItemBool(const QString &group,const QString &name, |
158 | bool *reference,bool defaultValue) : | 160 | bool *reference,bool defaultValue) : |
159 | KPrefsItem(group,name) | 161 | KPrefsItem(group,name) |
160 | { | 162 | { |
161 | mReference = reference; | 163 | mReference = reference; |
162 | mDefault = defaultValue; | 164 | mDefault = defaultValue; |
163 | } | 165 | } |
164 | 166 | ||
165 | void KPrefsItemBool::setDefault() | 167 | void KPrefsItemBool::setDefault() |
166 | { | 168 | { |
167 | *mReference = mDefault; | 169 | *mReference = mDefault; |
168 | } | 170 | } |
169 | 171 | ||
170 | void KPrefsItemBool::writeConfig(KConfig *config) | 172 | void KPrefsItemBool::writeConfig(KConfig *config) |
171 | { | 173 | { |
172 | config->setGroup(mGroup); | 174 | config->setGroup(mGroup); |
173 | config->writeEntry(mName,*mReference); | 175 | config->writeEntry(mName,*mReference); |
174 | } | 176 | } |
175 | 177 | ||
176 | 178 | ||
177 | void KPrefsItemBool::readConfig(KConfig *config) | 179 | void KPrefsItemBool::readConfig(KConfig *config) |
178 | { | 180 | { |
179 | config->setGroup(mGroup); | 181 | config->setGroup(mGroup); |
180 | *mReference = config->readBoolEntry(mName,mDefault); | 182 | *mReference = config->readBoolEntry(mName,mDefault); |
181 | } | 183 | } |
182 | 184 | ||
183 | 185 | ||
184 | KPrefsItemInt::KPrefsItemInt(const QString &group,const QString &name, | 186 | KPrefsItemInt::KPrefsItemInt(const QString &group,const QString &name, |
185 | int *reference,int defaultValue) : | 187 | int *reference,int defaultValue) : |
186 | KPrefsItem(group,name) | 188 | KPrefsItem(group,name) |
187 | { | 189 | { |
188 | mReference = reference; | 190 | mReference = reference; |
189 | mDefault = defaultValue; | 191 | mDefault = defaultValue; |
190 | } | 192 | } |
191 | 193 | ||
192 | void KPrefsItemInt::setDefault() | 194 | void KPrefsItemInt::setDefault() |
193 | { | 195 | { |
194 | *mReference = mDefault; | 196 | *mReference = mDefault; |
195 | } | 197 | } |
196 | 198 | ||
197 | void KPrefsItemInt::writeConfig(KConfig *config) | 199 | void KPrefsItemInt::writeConfig(KConfig *config) |
198 | { | 200 | { |
199 | config->setGroup(mGroup); | 201 | config->setGroup(mGroup); |
200 | config->writeEntry(mName,*mReference); | 202 | config->writeEntry(mName,*mReference); |
201 | } | 203 | } |
@@ -319,97 +321,97 @@ void KPrefsItemString::writeConfig(KConfig *config) | |||
319 | config->setGroup(mGroup); | 321 | config->setGroup(mGroup); |
320 | if ( mPassword ) | 322 | if ( mPassword ) |
321 | config->writeEntry(mName, endecryptStr( *mReference ) ); | 323 | config->writeEntry(mName, endecryptStr( *mReference ) ); |
322 | else | 324 | else |
323 | config->writeEntry(mName,*mReference); | 325 | config->writeEntry(mName,*mReference); |
324 | } | 326 | } |
325 | 327 | ||
326 | void KPrefsItemString::readConfig(KConfig *config) | 328 | void KPrefsItemString::readConfig(KConfig *config) |
327 | { | 329 | { |
328 | config->setGroup(mGroup); | 330 | config->setGroup(mGroup); |
329 | 331 | ||
330 | QString value; | 332 | QString value; |
331 | if ( mPassword ) { | 333 | if ( mPassword ) { |
332 | value = config->readEntry( mName, endecryptStr( mDefault ) ); | 334 | value = config->readEntry( mName, endecryptStr( mDefault ) ); |
333 | *mReference = endecryptStr( value ); | 335 | *mReference = endecryptStr( value ); |
334 | } else { | 336 | } else { |
335 | *mReference = config->readEntry( mName, mDefault ); | 337 | *mReference = config->readEntry( mName, mDefault ); |
336 | } | 338 | } |
337 | } | 339 | } |
338 | 340 | ||
339 | 341 | ||
340 | KPrefsItemStringList::KPrefsItemStringList(const QString &group,const QString &name, | 342 | KPrefsItemStringList::KPrefsItemStringList(const QString &group,const QString &name, |
341 | QStringList *reference,const QStringList &defaultValue) : | 343 | QStringList *reference,const QStringList &defaultValue) : |
342 | KPrefsItem(group,name) | 344 | KPrefsItem(group,name) |
343 | { | 345 | { |
344 | mReference = reference; | 346 | mReference = reference; |
345 | mDefault = defaultValue; | 347 | mDefault = defaultValue; |
346 | } | 348 | } |
347 | 349 | ||
348 | void KPrefsItemStringList::setDefault() | 350 | void KPrefsItemStringList::setDefault() |
349 | { | 351 | { |
350 | *mReference = mDefault; | 352 | *mReference = mDefault; |
351 | } | 353 | } |
352 | 354 | ||
353 | void KPrefsItemStringList::writeConfig(KConfig *config) | 355 | void KPrefsItemStringList::writeConfig(KConfig *config) |
354 | { | 356 | { |
355 | config->setGroup(mGroup); | 357 | config->setGroup(mGroup); |
356 | config->writeEntry(mName,*mReference); | 358 | config->writeEntry(mName,*mReference); |
357 | } | 359 | } |
358 | 360 | ||
359 | void KPrefsItemStringList::readConfig(KConfig *config) | 361 | void KPrefsItemStringList::readConfig(KConfig *config) |
360 | { | 362 | { |
361 | config->setGroup(mGroup); | 363 | config->setGroup(mGroup); |
362 | *mReference = config->readListEntry(mName); | 364 | *mReference = config->readListEntry(mName); |
363 | } | 365 | } |
364 | 366 | ||
365 | 367 | ||
366 | KPrefsItemIntList::KPrefsItemIntList(const QString &group,const QString &name, | 368 | KPrefsItemIntList::KPrefsItemIntList(const QString &group,const QString &name, |
367 | QValueList<int> *reference,const QValueList<int> &defaultValue) : | 369 | Q3ValueList<int> *reference,const Q3ValueList<int> &defaultValue) : |
368 | KPrefsItem(group,name) | 370 | KPrefsItem(group,name) |
369 | { | 371 | { |
370 | mReference = reference; | 372 | mReference = reference; |
371 | mDefault = defaultValue; | 373 | mDefault = defaultValue; |
372 | } | 374 | } |
373 | 375 | ||
374 | void KPrefsItemIntList::setDefault() | 376 | void KPrefsItemIntList::setDefault() |
375 | { | 377 | { |
376 | *mReference = mDefault; | 378 | *mReference = mDefault; |
377 | } | 379 | } |
378 | 380 | ||
379 | void KPrefsItemIntList::writeConfig(KConfig *config) | 381 | void KPrefsItemIntList::writeConfig(KConfig *config) |
380 | { | 382 | { |
381 | config->setGroup(mGroup); | 383 | config->setGroup(mGroup); |
382 | config->writeEntry(mName,*mReference); | 384 | config->writeEntry(mName,*mReference); |
383 | } | 385 | } |
384 | 386 | ||
385 | void KPrefsItemIntList::readConfig(KConfig *config) | 387 | void KPrefsItemIntList::readConfig(KConfig *config) |
386 | { | 388 | { |
387 | config->setGroup(mGroup); | 389 | config->setGroup(mGroup); |
388 | *mReference = config->readIntListEntry(mName); | 390 | *mReference = config->readIntListEntry(mName); |
389 | } | 391 | } |
390 | 392 | ||
391 | 393 | ||
392 | QString *KPrefs::mCurrentGroup = 0; | 394 | QString *KPrefs::mCurrentGroup = 0; |
393 | 395 | ||
394 | KPrefs::KPrefs(const QString &configname) | 396 | KPrefs::KPrefs(const QString &configname) |
395 | { | 397 | { |
396 | if (!configname.isEmpty()) { | 398 | if (!configname.isEmpty()) { |
397 | //qDebug("KPrefs::KPrefs %s",configname.latin1() ); | 399 | //qDebug("KPrefs::KPrefs %s",configname.latin1() ); |
398 | mConfig = new KConfig(locateLocal("config",configname)); | 400 | mConfig = new KConfig(locateLocal("config",configname)); |
399 | } else { | 401 | } else { |
400 | qDebug("KPrefs::Global config "); | 402 | qDebug("KPrefs::Global config "); |
401 | mConfig = KGlobal::config(); | 403 | mConfig = KGlobal::config(); |
402 | } | 404 | } |
403 | 405 | ||
404 | mItems.setAutoDelete(true); | 406 | mItems.setAutoDelete(true); |
405 | 407 | ||
406 | // Set default group | 408 | // Set default group |
407 | if (mCurrentGroup == 0) mCurrentGroup = new QString("No Group"); | 409 | if (mCurrentGroup == 0) mCurrentGroup = new QString("No Group"); |
408 | } | 410 | } |
409 | 411 | ||
410 | KPrefs::~KPrefs() | 412 | KPrefs::~KPrefs() |
411 | { | 413 | { |
412 | if (mConfig != KGlobal::config()) { | 414 | if (mConfig != KGlobal::config()) { |
413 | delete mConfig; | 415 | delete mConfig; |
414 | } | 416 | } |
415 | } | 417 | } |
@@ -460,53 +462,53 @@ void KPrefs::writeConfig() | |||
460 | 462 | ||
461 | 463 | ||
462 | void KPrefs::addItem(KPrefsItem *item) | 464 | void KPrefs::addItem(KPrefsItem *item) |
463 | { | 465 | { |
464 | mItems.append(item); | 466 | mItems.append(item); |
465 | } | 467 | } |
466 | 468 | ||
467 | void KPrefs::addItemBool(const QString &key,bool *reference,bool defaultValue) | 469 | void KPrefs::addItemBool(const QString &key,bool *reference,bool defaultValue) |
468 | { | 470 | { |
469 | addItem(new KPrefsItemBool(*mCurrentGroup,key,reference,defaultValue)); | 471 | addItem(new KPrefsItemBool(*mCurrentGroup,key,reference,defaultValue)); |
470 | } | 472 | } |
471 | 473 | ||
472 | void KPrefs::addItemInt(const QString &key,int *reference,int defaultValue) | 474 | void KPrefs::addItemInt(const QString &key,int *reference,int defaultValue) |
473 | { | 475 | { |
474 | addItem(new KPrefsItemInt(*mCurrentGroup,key,reference,defaultValue)); | 476 | addItem(new KPrefsItemInt(*mCurrentGroup,key,reference,defaultValue)); |
475 | } | 477 | } |
476 | 478 | ||
477 | void KPrefs::addItemColor(const QString &key,QColor *reference,const QColor &defaultValue) | 479 | void KPrefs::addItemColor(const QString &key,QColor *reference,const QColor &defaultValue) |
478 | { | 480 | { |
479 | addItem(new KPrefsItemColor(*mCurrentGroup,key,reference,defaultValue)); | 481 | addItem(new KPrefsItemColor(*mCurrentGroup,key,reference,defaultValue)); |
480 | } | 482 | } |
481 | 483 | ||
482 | void KPrefs::addItemFont(const QString &key,QFont *reference,const QFont &defaultValue) | 484 | void KPrefs::addItemFont(const QString &key,QFont *reference,const QFont &defaultValue) |
483 | { | 485 | { |
484 | addItem(new KPrefsItemFont(*mCurrentGroup,key,reference,defaultValue)); | 486 | addItem(new KPrefsItemFont(*mCurrentGroup,key,reference,defaultValue)); |
485 | } | 487 | } |
486 | 488 | ||
487 | void KPrefs::addItemSize(const QString &key,QSize *reference,const QSize &defaultValue) | 489 | void KPrefs::addItemSize(const QString &key,QSize *reference,const QSize &defaultValue) |
488 | { | 490 | { |
489 | addItem(new KPrefsItemSize(*mCurrentGroup,key,reference,defaultValue)); | 491 | addItem(new KPrefsItemSize(*mCurrentGroup,key,reference,defaultValue)); |
490 | } | 492 | } |
491 | 493 | ||
492 | void KPrefs::addItemString(const QString &key,QString *reference,const QString &defaultValue) | 494 | void KPrefs::addItemString(const QString &key,QString *reference,const QString &defaultValue) |
493 | { | 495 | { |
494 | addItem(new KPrefsItemString(*mCurrentGroup,key,reference,defaultValue,false)); | 496 | addItem(new KPrefsItemString(*mCurrentGroup,key,reference,defaultValue,false)); |
495 | } | 497 | } |
496 | 498 | ||
497 | void KPrefs::addItemPassword(const QString &key,QString *reference,const QString &defaultValue) | 499 | void KPrefs::addItemPassword(const QString &key,QString *reference,const QString &defaultValue) |
498 | { | 500 | { |
499 | addItem(new KPrefsItemString(*mCurrentGroup,key,reference,defaultValue,true)); | 501 | addItem(new KPrefsItemString(*mCurrentGroup,key,reference,defaultValue,true)); |
500 | } | 502 | } |
501 | 503 | ||
502 | void KPrefs::addItemStringList(const QString &key,QStringList *reference, | 504 | void KPrefs::addItemStringList(const QString &key,QStringList *reference, |
503 | const QStringList &defaultValue) | 505 | const QStringList &defaultValue) |
504 | { | 506 | { |
505 | addItem(new KPrefsItemStringList(*mCurrentGroup,key,reference,defaultValue)); | 507 | addItem(new KPrefsItemStringList(*mCurrentGroup,key,reference,defaultValue)); |
506 | } | 508 | } |
507 | 509 | ||
508 | void KPrefs::addItemIntList(const QString &key,QValueList<int> *reference, | 510 | void KPrefs::addItemIntList(const QString &key,Q3ValueList<int> *reference, |
509 | const QValueList<int> &defaultValue) | 511 | const Q3ValueList<int> &defaultValue) |
510 | { | 512 | { |
511 | addItem(new KPrefsItemIntList(*mCurrentGroup,key,reference,defaultValue)); | 513 | addItem(new KPrefsItemIntList(*mCurrentGroup,key,reference,defaultValue)); |
512 | } | 514 | } |