-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 | |||
@@ -279,24 +279,25 @@ QLabel *KPrefsWidString::label() | |||
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 | } |