equal
deleted
inserted
replaced
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; |