equal
deleted
inserted
replaced
35 class HB_WIDGETS_EXPORT HbTextEdit: public HbAbstractEdit |
35 class HB_WIDGETS_EXPORT HbTextEdit: public HbAbstractEdit |
36 { |
36 { |
37 Q_OBJECT |
37 Q_OBJECT |
38 |
38 |
39 Q_PROPERTY(QString plainText READ toPlainText WRITE setPlainText USER true) |
39 Q_PROPERTY(QString plainText READ toPlainText WRITE setPlainText USER true) |
|
40 Q_PROPERTY(bool lined |
|
41 READ isLined |
|
42 WRITE setLined) |
40 |
43 |
41 public: |
44 public: |
42 |
45 |
43 explicit HbTextEdit (QGraphicsItem *parent = 0); |
46 explicit HbTextEdit (QGraphicsItem *parent = 0); |
44 explicit HbTextEdit (const QString &text, QGraphicsItem *parent = 0); |
47 explicit HbTextEdit (const QString &text, QGraphicsItem *parent = 0); |
56 QTextCursor textCursor() const; |
59 QTextCursor textCursor() const; |
57 |
60 |
58 QString toPlainText() const; |
61 QString toPlainText() const; |
59 QString toHtml() const; |
62 QString toHtml() const; |
60 |
63 |
|
64 void setLined(bool visible=true); |
|
65 bool isLined() const; |
|
66 |
61 public slots: |
67 public slots: |
62 void setPlainText(const QString &text); |
68 void setPlainText(const QString &text); |
63 void setHtml(const QString &text); |
69 void setHtml(const QString &text); |
64 |
70 |
65 protected: |
71 protected: |
66 HbTextEdit (HbTextEditPrivate &dd, QGraphicsItem *parent); |
72 HbTextEdit (HbTextEditPrivate &dd, QGraphicsItem *parent); |
67 void resizeEvent(QGraphicsSceneResizeEvent *event); |
73 void resizeEvent(QGraphicsSceneResizeEvent *event); |
68 void polish( HbStyleParameters& params ); |
74 void polish( HbStyleParameters& params ); |
69 void focusOutEvent ( QFocusEvent * event ); |
|
70 void focusInEvent ( QFocusEvent * event ); |
|
71 |
75 |
72 private: |
76 private: |
73 Q_DISABLE_COPY(HbTextEdit) |
77 Q_DISABLE_COPY(HbTextEdit) |
74 Q_DECLARE_PRIVATE_D(d_ptr, HbTextEdit) |
78 Q_DECLARE_PRIVATE_D(d_ptr, HbTextEdit) |
75 }; |
79 }; |