emailuis/nmailuiwidgets/src/nmhtmllineedit.cpp
changeset 75 47d84de1c893
parent 54 997a02608b3a
child 74 6c59112cfd31
--- a/emailuis/nmailuiwidgets/src/nmhtmllineedit.cpp	Fri Sep 17 08:27:21 2010 +0300
+++ b/emailuis/nmailuiwidgets/src/nmhtmllineedit.cpp	Mon Oct 04 00:05:37 2010 +0300
@@ -102,6 +102,28 @@
 }
 
 /*!
+ *  Returns true if this widget has the input focus.
+ */
+bool NmHtmlLineEdit::hasInputFocus() const
+{
+    NM_FUNCTION;
+
+    bool ret = false;
+    
+    HbInputMethod* inputMethod = HbInputMethod::activeInputMethod();
+    
+    if (inputMethod) {
+        HbInputFocusObject *focusObject = inputMethod->focusObject();
+        if (focusObject) {
+            ret = (focusObject->object() == this);
+        }
+    }
+    
+    return ret; 
+}
+
+
+/*!
  *  Returns the rectangle for the cursor.
  */
 QRectF NmHtmlLineEdit::rectForCursorPosition() const