summaryrefslogtreecommitdiffabout
path: root/libkdepim/kprefswidget.cpp
Side-by-side diff
Diffstat (limited to 'libkdepim/kprefswidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/kprefswidget.cpp1
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()
{
mEdit->setText(*mReference);
}
void KPrefsWidString::writeConfig()
{
*mReference = mEdit->text();
}
QLabel *KPrefsWidString::label()
{
return mLabel;
}
QLineEdit *KPrefsWidString::lineEdit()
{
return mEdit;
}
KPrefsWidget::KPrefsWidget(KPrefs *prefs,QWidget *parent,const char *name) :
QWidget(parent, name )
{
mPrefs = prefs;
+ mPrefsWids.setAutoDelete( true );
}
KPrefsWidget::~KPrefsWidget()
{
}
void KPrefsWidget::addWid(KPrefsWid *wid)
{
mPrefsWids.append(wid);
connect( wid, SIGNAL( modified() ), this, SLOT( modified() ) );
}
KPrefsWidBool *KPrefsWidget::addWidBool(const QString &text,bool *reference,QWidget *parent)
{
KPrefsWidBool *w = new KPrefsWidBool(text,reference,parent);
addWid(w);
return w;
}
KPrefsWidTime *KPrefsWidget::addWidTime(const QString &text,int *reference,QWidget *parent)
{
KPrefsWidTime *w = new KPrefsWidTime(text,reference,parent);
addWid(w);