summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlinecontrol_p.h
diff options
context:
space:
mode:
authorRobert Griebl <rgriebl@trolltech.com>2010-01-27 14:54:25 (GMT)
committerRobert Griebl <rgriebl@trolltech.com>2010-03-03 16:27:24 (GMT)
commit65e7400babb0625f4d7616ec5d71490a2dcd3c6f (patch)
tree0a6f77584204e9e58bc63efca8e61f6a562875fb /src/gui/widgets/qlinecontrol_p.h
parentc7f2181a25243ed07f1406c7023dfdd5fb75d77d (diff)
downloadQt-65e7400babb0625f4d7616ec5d71490a2dcd3c6f.zip
Qt-65e7400babb0625f4d7616ec5d71490a2dcd3c6f.tar.gz
Qt-65e7400babb0625f4d7616ec5d71490a2dcd3c6f.tar.bz2
Always redraw the complete control when an input event comes in.
The problem here is that a pre-edit string won't be detected by updateDisplayText(), so the control thinks nothing has changed when a new pre-edit string is set. Reviewed-By: Simon Hausmann (cherry picked from commit 16f30906f6eea3e00351478555f153697a6e186d)
Diffstat (limited to 'src/gui/widgets/qlinecontrol_p.h')
-rw-r--r--src/gui/widgets/qlinecontrol_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qlinecontrol_p.h b/src/gui/widgets/qlinecontrol_p.h
index d6f2705..3f1bc2c 100644
--- a/src/gui/widgets/qlinecontrol_p.h
+++ b/src/gui/widgets/qlinecontrol_p.h
@@ -239,7 +239,7 @@ private:
void init(const QString &txt);
void removeSelectedText();
void internalSetText(const QString &txt, int pos = -1, bool edited = true);
- void updateDisplayText();
+ void updateDisplayText(bool forceUpdate = false);
void internalInsert(const QString &s);
void internalDelete(bool wasBackspace = false);