diff options
author | axis <qt-info@nokia.com> | 2010-01-21 12:43:27 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2010-01-25 10:43:53 (GMT) |
commit | 87ee066fc86cf6410fd008a8a5d31122a7d5cc11 (patch) | |
tree | e88792022f7ccb134d4f18a6524a03b31a424e41 /src/gui/inputmethod/qcoefepinputcontext_p.h | |
parent | ce64d3c7e0b93fa6792513f804b42d31acccc68e (diff) | |
download | Qt-87ee066fc86cf6410fd008a8a5d31122a7d5cc11.zip Qt-87ee066fc86cf6410fd008a8a5d31122a7d5cc11.tar.gz Qt-87ee066fc86cf6410fd008a8a5d31122a7d5cc11.tar.bz2 |
Made characters in a password field briefly visible while typing.
This was done by intercepting key events with text in them, and
temporarily submit them as preedit text instead of real input text.
Currently it does not work in WebKit, but that is because WebKit
hides preedit text as well, which is a bug of its own.
RevBy: Simon Hausmann
Autotest: Manual testing went fine
Diffstat (limited to 'src/gui/inputmethod/qcoefepinputcontext_p.h')
-rw-r--r-- | src/gui/inputmethod/qcoefepinputcontext_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_p.h b/src/gui/inputmethod/qcoefepinputcontext_p.h index 0b84e2f..f5034fc 100644 --- a/src/gui/inputmethod/qcoefepinputcontext_p.h +++ b/src/gui/inputmethod/qcoefepinputcontext_p.h @@ -57,6 +57,7 @@ #include "qinputcontext.h" #include <qhash.h> +#include <qtimer.h> #include <private/qcore_symbian_p.h> #include <private/qt_s60_p.h> @@ -91,6 +92,9 @@ public: TCoeInputCapabilities inputCapabilities(); +protected: + void timerEvent(QTimerEvent *timerEvent); + private: void commitCurrentString(bool triggeredBySymbian); void updateHints(bool mustUpdateInputCapabilities); @@ -98,6 +102,7 @@ private: void applyFormat(QList<QInputMethodEvent::Attribute> *attributes); void queueInputCapabilitiesChanged(); bool needsInputPanel(); + void commitTemporaryPreeditString(); private Q_SLOTS: void ensureInputCapabilitiesChanged(); @@ -148,6 +153,8 @@ private: MFepPointerEventHandlerDuringInlineEdit *m_pointerHandler; int m_longPress; int m_cursorPos; + QBasicTimer m_tempPreeditStringTimeout; + bool m_hasTempPreeditString; }; QT_END_NAMESPACE |