equal
deleted
inserted
replaced
24 */ |
24 */ |
25 NmHtmlLineEdit::NmHtmlLineEdit(QGraphicsItem *parent) : |
25 NmHtmlLineEdit::NmHtmlLineEdit(QGraphicsItem *parent) : |
26 HbLineEdit(parent) |
26 HbLineEdit(parent) |
27 { |
27 { |
28 NM_FUNCTION; |
28 NM_FUNCTION; |
|
29 |
|
30 // Disable scrolling so that baunch effect works correctly |
|
31 HbAbstractEdit::setScrollable(false); |
|
32 HbAbstractEdit::scrollArea()->setScrollDirections(0); |
29 } |
33 } |
30 |
34 |
31 /*! |
35 /*! |
32 Destructor |
36 Destructor |
33 */ |
37 */ |
94 { |
98 { |
95 NM_FUNCTION; |
99 NM_FUNCTION; |
96 |
100 |
97 HbAbstractEdit::setPlainText(text); |
101 HbAbstractEdit::setPlainText(text); |
98 } |
102 } |
|
103 |
|
104 /*! |
|
105 * Returns the rectangle for the cursor. |
|
106 */ |
|
107 QRectF NmHtmlLineEdit::rectForCursorPosition() const |
|
108 { |
|
109 NM_FUNCTION; |
|
110 |
|
111 return HbLineEdit::rectForPosition(cursorPosition()); |
|
112 } |