--- a/emailuis/nmailuiwidgets/src/nmhtmllineedit.cpp Fri Sep 03 17:52:02 2010 +0300
+++ b/emailuis/nmailuiwidgets/src/nmhtmllineedit.cpp Wed Sep 15 12:09:55 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