summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlineedit_p.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/qlineedit_p.cpp')
-rw-r--r--src/gui/widgets/qlineedit_p.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qlineedit_p.cpp b/src/gui/widgets/qlineedit_p.cpp
index 23ac61384f..03716d4c66 100644
--- a/src/gui/widgets/qlineedit_p.cpp
+++ b/src/gui/widgets/qlineedit_p.cpp
@@ -153,6 +153,7 @@ void QLineEditPrivate::init(const QString& txt)
{
Q_Q(QLineEdit);
control = new QLineControl(txt);
+ control->setParent(q);
control->setFont(q->font());
QObject::connect(control, SIGNAL(textChanged(QString)),
q, SIGNAL(textChanged(QString)));