summaryrefslogtreecommitdiff
path: root/src/gui/widgets/qlineedit.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-15 12:32:42 +0200
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-15 12:47:26 +0200
commit6a90f032d160f35058373fce16efd1b5d2190bf1 (patch)
tree9e95bf12c44eb2ab2a7d08b88d55aa4d4ca2c4e6 /src/gui/widgets/qlineedit.cpp
parentaf1cfbc945c7c01adea09d3d369699f4dd0daab9 (diff)
downloadqt4-tools-6a90f032d160f35058373fce16efd1b5d2190bf1.tar.gz
Fixed QLineEdit to pass the tst_QLineEdit::displayText() autotest.
Fetch the correct password character from the style. Reviewed-by: Olivier
Diffstat (limited to 'src/gui/widgets/qlineedit.cpp')
-rw-r--r--src/gui/widgets/qlineedit.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp
index a55ca8ea35..37e57cfb50 100644
--- a/src/gui/widgets/qlineedit.cpp
+++ b/src/gui/widgets/qlineedit.cpp
@@ -2047,7 +2047,11 @@ void QLineEdit::changeEvent(QEvent *ev)
d->control->setFont(font());
break;
case QEvent::StyleChange:
- d->control->setPasswordCharacter(style()->styleHint(QStyle::SH_LineEdit_PasswordCharacter));
+ {
+ QStyleOptionFrameV2 opt;
+ initStyleOption(&opt);
+ d->control->setPasswordCharacter(style()->styleHint(QStyle::SH_LineEdit_PasswordCharacter, &opt, this));
+ }
update();
break;
case QEvent::LayoutDirectionChange: