summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod/qximinputcontext_p.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-23 12:13:43 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-24 15:18:55 (GMT)
commit7f147cf30e8c72ed4c452de31f4b5f853dbe9e4f (patch)
tree94faed0e79b42e18dc384a8882bd110b57550a38 /src/gui/inputmethod/qximinputcontext_p.h
parent2b9e47e4ce09802f00fa2ca39c0cd877f59ae4d9 (diff)
downloadQt-7f147cf30e8c72ed4c452de31f4b5f853dbe9e4f.zip
Qt-7f147cf30e8c72ed4c452de31f4b5f853dbe9e4f.tar.gz
Qt-7f147cf30e8c72ed4c452de31f4b5f853dbe9e4f.tar.bz2
Don't commit an empty string to the widget when it looses focus.
When a wiget that accepts keyboard input looses focus and the input context is resetted we should clear the old preedit string by sending an empty commit string only if the widget received non-empty pre-edit string before. Reviewed-by: Brad
Diffstat (limited to 'src/gui/inputmethod/qximinputcontext_p.h')
-rw-r--r--src/gui/inputmethod/qximinputcontext_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qximinputcontext_p.h b/src/gui/inputmethod/qximinputcontext_p.h
index ca2103b..3773122 100644
--- a/src/gui/inputmethod/qximinputcontext_p.h
+++ b/src/gui/inputmethod/qximinputcontext_p.h
@@ -98,6 +98,7 @@ public:
QString text;
QBitArray selectedChars;
bool composing;
+ bool preeditEmpty;
void clear();
};