equal
deleted
inserted
replaced
40 /** |
40 /** |
41 * seeker method for getting address list |
41 * seeker method for getting address list |
42 */ |
42 */ |
43 QStringList addresses(); |
43 QStringList addresses(); |
44 |
44 |
|
45 /** |
|
46 * Flag to retain or override base-class behaviour |
|
47 * Needed because address & subject field classes derieve |
|
48 * from this class, but have different behaviour |
|
49 */ |
45 void setDefaultBehaviour(bool defaultBehaviour = false); |
50 void setDefaultBehaviour(bool defaultBehaviour = false); |
|
51 |
|
52 /** |
|
53 * seeker method for getting the text content held by editing field |
|
54 */ |
46 QString content() const; |
55 QString content() const; |
47 |
56 |
|
57 /** |
|
58 * setter method to clear text content of the editing field |
|
59 */ |
|
60 void clearContent(); |
|
61 |
|
62 /** |
|
63 * set highlight on invalid contact |
|
64 * @param invalidStr, String to be highlighted |
|
65 */ |
|
66 void highlightInvalidString(QString invalidStr); |
|
67 |
48 signals: |
68 signals: |
49 void contentsChanged(const QString& text); |
69 void contentsChanged(const QString& text); |
50 |
70 |
51 public slots: |
71 public slots: |
52 void setText(const QString &text); |
72 void setText(const QString &text, bool underlined = true); |
53 void cut(); |
73 void cut(); |
54 void selectAll(); |
74 void selectAll(); |
55 |
75 |
56 private slots: |
76 private slots: |
57 void selectionChanged(const QTextCursor &oldCursor, const QTextCursor& newCursor); |
77 void selectionChanged(const QTextCursor &oldCursor, const QTextCursor& newCursor); |
60 protected: // from HbLineEdit |
80 protected: // from HbLineEdit |
61 void inputMethodEvent(QInputMethodEvent *event); |
81 void inputMethodEvent(QInputMethodEvent *event); |
62 void keyPressEvent(QKeyEvent *event); |
82 void keyPressEvent(QKeyEvent *event); |
63 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); |
83 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); |
64 void focusInEvent(QFocusEvent* event); |
84 void focusInEvent(QFocusEvent* event); |
|
85 void focusOutEvent(QFocusEvent *event); |
65 void timerEvent (QTimerEvent *event); |
86 void timerEvent (QTimerEvent *event); |
66 |
87 |
67 |
88 |
68 private: |
89 private: |
69 void setHighlight(int currentPos); |
90 void setHighlight(int currentPos); |