Commit e3237deee07ec6961b905800d29b1a80f0f63595

  • avatar
  • axis <qt-info @no…a.com>
  • Fri Feb 05 13:50:44 CET 2010
Removed useless member variable and replaced with var on the stack.

RevBy:    Trust me
  
151151 int m_inlinePosition;
152152 MFepInlineTextFormatRetriever *m_formatRetriever;
153153 MFepPointerEventHandlerDuringInlineEdit *m_pointerHandler;
154 int m_longPress;
155154 int m_cursorPos;
156155 QBasicTimer m_tempPreeditStringTimeout;
157156 bool m_hasTempPreeditString;
  
7171 m_inlinePosition(0),
7272 m_formatRetriever(0),
7373 m_pointerHandler(0),
74 m_longPress(0),
7574 m_cursorPos(0),
7675 m_hasTempPreeditString(false)
7776{
743743
744744void QCoeFepInputContext::commitCurrentString(bool triggeredBySymbian)
745745{
746 int longPress = 0;
747
746748 if (m_preeditString.size() == 0) {
747749 QWidget *w = focusWidget();
748750 if (triggeredBySymbian && w) {
749751 // We must replace the last character only if the input box has already accepted one
750752 if (w->inputMethodQuery(Qt::ImCursorPosition).toInt() != m_cursorPos)
751 m_longPress = 1;
753 longPress = 1;
752754 }
753755 return;
754756 }
755757
756758 QList<QInputMethodEvent::Attribute> attributes;
757759 QInputMethodEvent event(QLatin1String(""), attributes);
758 event.setCommitString(m_preeditString, 0-m_longPress, m_longPress);
760 event.setCommitString(m_preeditString, 0-longPress, longPress);
759761 m_preeditString.clear();
760762 sendEvent(event);
761763
762764 m_hasTempPreeditString = false;
763 m_longPress = 0;
765 longPress = 0;
764766
765767 if (!triggeredBySymbian) {
766768 CCoeFep* fep = CCoeEnv::Static()->Fep();