equal
deleted
inserted
replaced
33 #include "hbinputmethod.h" |
33 #include "hbinputmethod.h" |
34 #include "hbinputfocusobject.h" |
34 #include "hbinputfocusobject.h" |
35 #include "hbinputeditorinterface.h" |
35 #include "hbinputeditorinterface.h" |
36 #include "hbinputvkbhost.h" |
36 #include "hbinputvkbhost.h" |
37 #include "hbinputstandardfilters.h" |
37 #include "hbinputstandardfilters.h" |
38 |
38 #include "hbnamespace_p.h" |
39 const qreal HbInputVkbZPlaneEpsilon = 0.5; |
|
40 |
39 |
41 /*! |
40 /*! |
42 @alpha |
41 @alpha |
43 @hbcore |
42 @hbcore |
44 \class HbInputFocusObject |
43 \class HbInputFocusObject |
229 Returns editor interface object pointing to focused editor. |
228 Returns editor interface object pointing to focused editor. |
230 */ |
229 */ |
231 HbEditorInterface& HbInputFocusObject::editorInterface() const |
230 HbEditorInterface& HbInputFocusObject::editorInterface() const |
232 { |
231 { |
233 return d_ptr->mEditorInterface; |
232 return d_ptr->mEditorInterface; |
234 } |
|
235 |
|
236 /*! |
|
237 \deprecated HbInputFocusObject::cursorLeft(int) |
|
238 is deprecated. Use HbInputFocusObject::cursorLeft(Qt::KeyboardModifiers modifiers) instead. |
|
239 Sends left arrow key press to focused editor. |
|
240 */ |
|
241 void HbInputFocusObject::cursorLeft(int modifiers) |
|
242 { |
|
243 cursorLeft(static_cast<Qt::KeyboardModifiers>(modifiers)); |
|
244 } |
|
245 |
|
246 /*! |
|
247 \deprecated HbInputFocusObject::cursorRight(int) |
|
248 is deprecated. Use HbInputFocusObject::cursorRight(Qt::KeyboardModifiers modifiers) instead. |
|
249 Sends right arrow key press to focused editor. |
|
250 */ |
|
251 void HbInputFocusObject::cursorRight(int modifiers) |
|
252 { |
|
253 cursorRight(static_cast<Qt::KeyboardModifiers>(modifiers)); |
|
254 } |
233 } |
255 |
234 |
256 /*! |
235 /*! |
257 Sends left arrow key press to focused editor. |
236 Sends left arrow key press to focused editor. |
258 */ |
237 */ |
393 qreal result = editorWidget->zValue(); |
372 qreal result = editorWidget->zValue(); |
394 for (QGraphicsWidget *parent = editorWidget->parentWidget(); parent; parent = parent->parentWidget()) { |
373 for (QGraphicsWidget *parent = editorWidget->parentWidget(); parent; parent = parent->parentWidget()) { |
395 result += parent->zValue(); |
374 result += parent->zValue(); |
396 } |
375 } |
397 |
376 |
398 return result + HbInputVkbZPlaneEpsilon; |
377 return result + HbPrivate::VKBValueUnit; |
399 } |
378 } |
400 |
379 |
401 return 0.0; |
380 return 0.0; |
402 } |
381 } |
403 |
382 |