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 void setDefaultBehaviour(bool defaultBehaviour = false); |
|
46 QString content() const; |
|
47 |
45 signals: |
48 signals: |
46 void addressTextChanged(const QString& text); |
49 void contentsChanged(const QString& text); |
47 |
50 |
48 public slots: |
51 public slots: |
49 void setText(const QString &text); |
52 void setText(const QString &text); |
50 void cut(); |
53 void cut(); |
51 void selectAll(); |
54 void selectAll(); |
52 |
55 |
53 private slots: |
56 private slots: |
54 void selectionChanged(const QTextCursor &oldCursor, const QTextCursor& newCursor); |
57 void selectionChanged(const QTextCursor &oldCursor, const QTextCursor& newCursor); |
55 void onTextChanged(const QString& text); |
58 void onContentsChanged(); |
56 |
59 |
57 protected: // from HbLineEdit |
60 protected: // from HbLineEdit |
58 void inputMethodEvent(QInputMethodEvent *event); |
61 void inputMethodEvent(QInputMethodEvent *event); |
59 void keyPressEvent(QKeyEvent *event); |
62 void keyPressEvent(QKeyEvent *event); |
60 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); |
63 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); |
62 void timerEvent (QTimerEvent *event); |
65 void timerEvent (QTimerEvent *event); |
63 |
66 |
64 |
67 |
65 private: |
68 private: |
66 void setHighlight(int currentPos); |
69 void setHighlight(int currentPos); |
67 void textChanged(const QString& text); |
70 QString text() const; |
68 |
71 |
69 private: |
72 private: |
70 QRegExp mLabelExpr; |
73 QRegExp mLabelExpr; |
71 QString mLabel; |
74 QString mLabel; |
72 QBasicTimer mSelectionSnapTimer; |
75 QBasicTimer mSelectionSnapTimer; |
73 |
76 |
74 int mSelectionStart; |
77 int mSelectionStart; |
75 int mSelectionEnd; |
78 int mSelectionEnd; |
|
79 bool mDefaultBehaviour; |
76 }; |
80 }; |
77 |
81 |
78 #endif // MSGUNIFIEDEDITORLINEEDIT_H |
82 #endif // MSGUNIFIEDEDITORLINEEDIT_H |