emailuis/nmailuiwidgets/src/nmhtmllineedit.cpp
changeset 68 83cc6bae1de8
parent 48 10eaf342f539
child 74 6c59112cfd31
equal deleted inserted replaced
67:459da34cdb45 68:83cc6bae1de8
   100     
   100     
   101     HbAbstractEdit::setPlainText(text);
   101     HbAbstractEdit::setPlainText(text);
   102 }
   102 }
   103 
   103 
   104 /*!
   104 /*!
       
   105  *  Returns true if this widget has the input focus.
       
   106  */
       
   107 bool NmHtmlLineEdit::hasInputFocus() const
       
   108 {
       
   109     NM_FUNCTION;
       
   110 
       
   111     bool ret = false;
       
   112     
       
   113     HbInputMethod* inputMethod = HbInputMethod::activeInputMethod();
       
   114     
       
   115     if (inputMethod) {
       
   116         HbInputFocusObject *focusObject = inputMethod->focusObject();
       
   117         if (focusObject) {
       
   118             ret = (focusObject->object() == this);
       
   119         }
       
   120     }
       
   121     
       
   122     return ret; 
       
   123 }
       
   124 
       
   125 
       
   126 /*!
   105  *  Returns the rectangle for the cursor.
   127  *  Returns the rectangle for the cursor.
   106  */
   128  */
   107 QRectF NmHtmlLineEdit::rectForCursorPosition() const
   129 QRectF NmHtmlLineEdit::rectForCursorPosition() const
   108 {
   130 {
   109     NM_FUNCTION;
   131     NM_FUNCTION;