23 Constructor |
23 Constructor |
24 */ |
24 */ |
25 NmHtmlLineEdit::NmHtmlLineEdit(QGraphicsItem *parent) : |
25 NmHtmlLineEdit::NmHtmlLineEdit(QGraphicsItem *parent) : |
26 HbLineEdit(parent) |
26 HbLineEdit(parent) |
27 { |
27 { |
|
28 NM_FUNCTION; |
28 } |
29 } |
29 |
30 |
30 /*! |
31 /*! |
31 Destructor |
32 Destructor |
32 */ |
33 */ |
33 NmHtmlLineEdit::~NmHtmlLineEdit() |
34 NmHtmlLineEdit::~NmHtmlLineEdit() |
34 { |
35 { |
|
36 NM_FUNCTION; |
35 } |
37 } |
36 |
38 |
37 /*! |
39 /*! |
38 Replaces the document used in the editor. |
40 Replaces the document used in the editor. |
39 |
41 |
40 This allows |
42 This allows |
41 */ |
43 */ |
42 void NmHtmlLineEdit::setDocument(QTextDocument *document) |
44 void NmHtmlLineEdit::setDocument(QTextDocument *document) |
43 { |
45 { |
|
46 NM_FUNCTION; |
|
47 |
44 HbAbstractEdit::setDocument(document); |
48 HbAbstractEdit::setDocument(document); |
45 } |
49 } |
46 |
50 |
47 QTextDocument *NmHtmlLineEdit::document() const |
51 QTextDocument *NmHtmlLineEdit::document() const |
48 { |
52 { |
|
53 NM_FUNCTION; |
|
54 |
49 return HbAbstractEdit::document(); |
55 return HbAbstractEdit::document(); |
50 } |
56 } |
51 |
57 |
52 void NmHtmlLineEdit::setTextCursor(const QTextCursor &cursor) |
58 void NmHtmlLineEdit::setTextCursor(const QTextCursor &cursor) |
53 { |
59 { |
|
60 NM_FUNCTION; |
|
61 |
54 HbAbstractEdit::setTextCursor(cursor); |
62 HbAbstractEdit::setTextCursor(cursor); |
55 } |
63 } |
56 |
64 |
57 QTextCursor NmHtmlLineEdit::textCursor() const |
65 QTextCursor NmHtmlLineEdit::textCursor() const |
58 { |
66 { |
|
67 NM_FUNCTION; |
|
68 |
59 return HbAbstractEdit::textCursor(); |
69 return HbAbstractEdit::textCursor(); |
60 } |
70 } |
61 |
71 |
62 QString NmHtmlLineEdit::toHtml() const |
72 QString NmHtmlLineEdit::toHtml() const |
63 { |
73 { |
|
74 NM_FUNCTION; |
|
75 |
64 return HbAbstractEdit::toHtml(); |
76 return HbAbstractEdit::toHtml(); |
65 } |
77 } |
66 |
78 |
67 void NmHtmlLineEdit::setHtml(const QString &text) |
79 void NmHtmlLineEdit::setHtml(const QString &text) |
68 { |
80 { |
|
81 NM_FUNCTION; |
|
82 |
69 HbAbstractEdit::setHtml(text); |
83 HbAbstractEdit::setHtml(text); |
70 } |
84 } |
71 |
85 |
72 QString NmHtmlLineEdit::toPlainText () const |
86 QString NmHtmlLineEdit::toPlainText () const |
73 { |
87 { |
|
88 NM_FUNCTION; |
|
89 |
74 return HbAbstractEdit::toPlainText(); |
90 return HbAbstractEdit::toPlainText(); |
75 } |
91 } |
76 |
92 |
77 void NmHtmlLineEdit::setPlainText (const QString &text) |
93 void NmHtmlLineEdit::setPlainText (const QString &text) |
78 { |
94 { |
|
95 NM_FUNCTION; |
|
96 |
79 HbAbstractEdit::setPlainText(text); |
97 HbAbstractEdit::setPlainText(text); |
80 } |
98 } |