equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #ifndef MSG_UNIFIED_EDITOR_LINEEDIT_H |
18 #ifndef MSG_UNIFIED_EDITOR_LINEEDIT_H |
19 #define MSG_UNIFIED_EDITOR_LINEEDIT_H |
19 #define MSG_UNIFIED_EDITOR_LINEEDIT_H |
20 |
20 |
21 #include <HbLineEdit> |
21 #include <HbTextEdit> |
22 #include<QBasicTimer> |
22 #include<QBasicTimer> |
23 |
23 |
24 |
24 |
25 class MsgUnifiedEditorLineEdit : public HbLineEdit |
25 class MsgUnifiedEditorLineEdit : public HbTextEdit |
26 { |
26 { |
27 Q_OBJECT |
27 Q_OBJECT |
28 |
28 |
29 public: |
29 public: |
30 /** |
30 /** |
87 |
87 |
88 private: |
88 private: |
89 void setHighlight(int currentPos); |
89 void setHighlight(int currentPos); |
90 QString text() const; |
90 QString text() const; |
91 void handleTap(); |
91 void handleTap(); |
|
92 void setSelection(int start, int length); |
92 |
93 |
93 private: |
94 private: |
94 QRegExp mLabelExpr; |
95 QRegExp mLabelExpr; |
95 QString mLabel; |
96 QString mLabel; |
96 QBasicTimer mSelectionSnapTimer; |
97 QBasicTimer mSelectionSnapTimer; |
97 |
98 |
98 int mSelectionStart; |
99 int mSelectionStart; |
99 int mSelectionEnd; |
100 int mSelectionEnd; |
100 bool mDefaultBehaviour; |
101 bool mDefaultBehaviour; |
101 |
102 |
102 #ifdef MSGUI_UNIT_TEST |
103 #ifdef UNIEDITOR_UNIT_TEST |
103 friend class TestMsgUnifiedEditorLineEdit; |
104 friend class TestMsgUnifiedEditorLineEdit; |
104 #endif |
105 #endif |
105 }; |
106 }; |
106 |
107 |
107 #endif // MSG_UNIFIED_EDITOR_LINEEDIT_H |
108 #endif // MSG_UNIFIED_EDITOR_LINEEDIT_H |