summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-08-13 14:20:27 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-08-13 14:24:37 (GMT)
commit9f13cde554e1a56fade3b9b298b264c54b1ef4b9 (patch)
tree911a483ea0cfd3879408ed02bdef5dfc9dd48641 /src/gui/widgets
parent1e6e479037670518630b3c234bd47ed39fa08dd2 (diff)
downloadQt-9f13cde554e1a56fade3b9b298b264c54b1ef4b9.zip
Qt-9f13cde554e1a56fade3b9b298b264c54b1ef4b9.tar.gz
Qt-9f13cde554e1a56fade3b9b298b264c54b1ef4b9.tar.bz2
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/gui/widgets')
-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 5950d85..08fce9b 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 &)),