summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-08-13 16:20:27 +0200
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-08-13 16:24:37 +0200
commit9f13cde554e1a56fade3b9b298b264c54b1ef4b9 (patch)
tree911a483ea0cfd3879408ed02bdef5dfc9dd48641 /src
parent1e6e479037670518630b3c234bd47ed39fa08dd2 (diff)
Use the correct font for QLineEdit
We don't get a FontChange event initially, so the control ended up with the default font instead. Reviewed-by: Andreas
Diffstat (limited to 'src')
-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 5950d856f..08fce9b2a 100644
--- a/src/gui/widgets/qlineedit_p.cpp
+++ b/src/gui/widgets/qlineedit_p.cpp
@@ -138,6 +138,7 @@ void QLineEditPrivate::init(const QString& txt)
{
Q_Q(QLineEdit);
control = new QLineControl(txt);
+ control->setFont(q->font());
QObject::connect(control, SIGNAL(textChanged(const QString &)),
q, SIGNAL(textChanged(const QString &)));
QObject::connect(control, SIGNAL(textEdited(const QString &)),