author | zautrix <zautrix> | 2004-11-01 14:15:56 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-11-01 14:15:56 (UTC) |
commit | 3320af5e47cdb4b54c4185c91d0332c013d90818 (patch) (unidiff) | |
tree | 9d7db42d4350616d315c5f95e1ac0aed00ed1314 /libkdepim/kprefswidget.cpp | |
parent | 56845a3ee7013af8a2db26a89aa151ee482ef0ed (diff) | |
download | kdepimpi-3320af5e47cdb4b54c4185c91d0332c013d90818.zip kdepimpi-3320af5e47cdb4b54c4185c91d0332c013d90818.tar.gz kdepimpi-3320af5e47cdb4b54c4185c91d0332c013d90818.tar.bz2 |
ompi fixes
-rw-r--r-- | libkdepim/kprefswidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libkdepim/kprefswidget.cpp b/libkdepim/kprefswidget.cpp index be9ad30..f6a0b38 100644 --- a/libkdepim/kprefswidget.cpp +++ b/libkdepim/kprefswidget.cpp | |||
@@ -267,48 +267,49 @@ void KPrefsWidString::readConfig() | |||
267 | { | 267 | { |
268 | mEdit->setText(*mReference); | 268 | mEdit->setText(*mReference); |
269 | } | 269 | } |
270 | 270 | ||
271 | void KPrefsWidString::writeConfig() | 271 | void KPrefsWidString::writeConfig() |
272 | { | 272 | { |
273 | *mReference = mEdit->text(); | 273 | *mReference = mEdit->text(); |
274 | } | 274 | } |
275 | 275 | ||
276 | QLabel *KPrefsWidString::label() | 276 | QLabel *KPrefsWidString::label() |
277 | { | 277 | { |
278 | return mLabel; | 278 | return mLabel; |
279 | } | 279 | } |
280 | 280 | ||
281 | QLineEdit *KPrefsWidString::lineEdit() | 281 | QLineEdit *KPrefsWidString::lineEdit() |
282 | { | 282 | { |
283 | return mEdit; | 283 | return mEdit; |
284 | } | 284 | } |
285 | 285 | ||
286 | 286 | ||
287 | KPrefsWidget::KPrefsWidget(KPrefs *prefs,QWidget *parent,const char *name) : | 287 | KPrefsWidget::KPrefsWidget(KPrefs *prefs,QWidget *parent,const char *name) : |
288 | QWidget(parent, name ) | 288 | QWidget(parent, name ) |
289 | { | 289 | { |
290 | mPrefs = prefs; | 290 | mPrefs = prefs; |
291 | mPrefsWids.setAutoDelete( true ); | ||
291 | } | 292 | } |
292 | 293 | ||
293 | KPrefsWidget::~KPrefsWidget() | 294 | KPrefsWidget::~KPrefsWidget() |
294 | { | 295 | { |
295 | } | 296 | } |
296 | 297 | ||
297 | void KPrefsWidget::addWid(KPrefsWid *wid) | 298 | void KPrefsWidget::addWid(KPrefsWid *wid) |
298 | { | 299 | { |
299 | mPrefsWids.append(wid); | 300 | mPrefsWids.append(wid); |
300 | connect( wid, SIGNAL( modified() ), this, SLOT( modified() ) ); | 301 | connect( wid, SIGNAL( modified() ), this, SLOT( modified() ) ); |
301 | 302 | ||
302 | } | 303 | } |
303 | 304 | ||
304 | KPrefsWidBool *KPrefsWidget::addWidBool(const QString &text,bool *reference,QWidget *parent) | 305 | KPrefsWidBool *KPrefsWidget::addWidBool(const QString &text,bool *reference,QWidget *parent) |
305 | { | 306 | { |
306 | KPrefsWidBool *w = new KPrefsWidBool(text,reference,parent); | 307 | KPrefsWidBool *w = new KPrefsWidBool(text,reference,parent); |
307 | addWid(w); | 308 | addWid(w); |
308 | return w; | 309 | return w; |
309 | } | 310 | } |
310 | 311 | ||
311 | KPrefsWidTime *KPrefsWidget::addWidTime(const QString &text,int *reference,QWidget *parent) | 312 | KPrefsWidTime *KPrefsWidget::addWidTime(const QString &text,int *reference,QWidget *parent) |
312 | { | 313 | { |
313 | KPrefsWidTime *w = new KPrefsWidTime(text,reference,parent); | 314 | KPrefsWidTime *w = new KPrefsWidTime(text,reference,parent); |
314 | addWid(w); | 315 | addWid(w); |