|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Message editor header widget |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "nmailuiwidgetsheaders.h" |
|
19 /* |
|
20 #include "nmhtmllineedit.h" |
|
21 */ |
|
22 /*! |
|
23 Constructor |
|
24 */ |
|
25 NmHtmlLineEdit::NmHtmlLineEdit(QGraphicsItem *parent) : |
|
26 HbLineEdit(parent) |
|
27 { |
|
28 } |
|
29 |
|
30 /*! |
|
31 Destructor |
|
32 */ |
|
33 NmHtmlLineEdit::~NmHtmlLineEdit() |
|
34 { |
|
35 } |
|
36 |
|
37 /*! |
|
38 Replaces the document used in the editor. |
|
39 |
|
40 This allows |
|
41 */ |
|
42 void NmHtmlLineEdit::setDocument(QTextDocument *document) |
|
43 { |
|
44 HbAbstractEdit::setDocument(document); |
|
45 } |
|
46 |
|
47 QTextDocument *NmHtmlLineEdit::document() const |
|
48 { |
|
49 return HbAbstractEdit::document(); |
|
50 } |
|
51 |
|
52 void NmHtmlLineEdit::setTextCursor(const QTextCursor &cursor) |
|
53 { |
|
54 HbAbstractEdit::setTextCursor(cursor); |
|
55 } |
|
56 |
|
57 QTextCursor NmHtmlLineEdit::textCursor() const |
|
58 { |
|
59 return HbAbstractEdit::textCursor(); |
|
60 } |
|
61 |
|
62 QString NmHtmlLineEdit::toHtml() const |
|
63 { |
|
64 return HbAbstractEdit::toHtml(); |
|
65 } |
|
66 |
|
67 void NmHtmlLineEdit::setHtml(const QString &text) |
|
68 { |
|
69 HbAbstractEdit::setHtml(text); |
|
70 } |
|
71 |
|
72 QString NmHtmlLineEdit::toPlainText () const |
|
73 { |
|
74 return HbAbstractEdit::toPlainText(); |
|
75 } |
|
76 |
|
77 void NmHtmlLineEdit::setPlainText (const QString &text) |
|
78 { |
|
79 HbAbstractEdit::setPlainText(text); |
|
80 } |