Use the member variable

BUG: 241843

svn path=/trunk/KDE/kdebase/apps/; revision=1142897
This commit is contained in:
Christoph Feck 2010-06-26 00:33:25 +00:00
parent 53c13ca2b5
commit 97bff6c1f6

View file

@ -30,14 +30,14 @@ SearchOptionDialogBox::SearchOptionDialogBox(QWidget* parent) :
QWidget* container = new QWidget(this);
QLabel* label = new QLabel(i18nc("@label", "Name:"), container);
KLineEdit* lineEdit = new KLineEdit(container);
lineEdit->setMinimumWidth(250);
lineEdit->setClearButtonShown(true);
mLineEdit = new KLineEdit(container);
mLineEdit->setMinimumWidth(250);
mLineEdit->setClearButtonShown(true);
connect(lineEdit, SIGNAL(textChanged(const QString&)), SLOT(slotTextChanged(const QString&)));
connect(mLineEdit, SIGNAL(textChanged(const QString&)), SLOT(slotTextChanged(const QString&)));
QHBoxLayout* layout = new QHBoxLayout(container);
layout->addWidget(label, Qt::AlignRight);
layout->addWidget(lineEdit);
layout->addWidget(mLineEdit);
setMainWidget(container);
setCaption(i18nc("@title:window", "Save Search Options"));