equal
deleted
inserted
replaced
44 const QString SEND_BUTTON_NORMAL("qtg_fr_input_btn_function_normal"); |
44 const QString SEND_BUTTON_NORMAL("qtg_fr_input_btn_function_normal"); |
45 const QString SEND_BUTTON_PRESSED("qtg_fr_input_btn_function_pressed"); |
45 const QString SEND_BUTTON_PRESSED("qtg_fr_input_btn_function_pressed"); |
46 const QString SEND_BUTTON_DISABLED("qtg_fr_input_btn_function_disabled"); |
46 const QString SEND_BUTTON_DISABLED("qtg_fr_input_btn_function_disabled"); |
47 |
47 |
48 #define LOC_SMS_CHAR_LIMIT_REACHED hbTrId("txt_messaging_dialog_sms_character_count_exceeded") |
48 #define LOC_SMS_CHAR_LIMIT_REACHED hbTrId("txt_messaging_dialog_sms_character_count_exceeded") |
49 #define LOC_DIALOG_OK hbTrId("txt_common_button_ok") |
|
50 #define LOC_BUTTON_CANCEL hbTrId("txt_common_button_cancel") |
|
51 #define LOC_HINT_TEXT hbTrId("txt_messaging_formlabel_enter_message_here") |
49 #define LOC_HINT_TEXT hbTrId("txt_messaging_formlabel_enter_message_here") |
52 |
50 |
53 |
51 |
54 const TInt KShowCounterLimit = 10; |
52 const TInt KShowCounterLimit = 10; |
55 |
53 |
253 void MsgEditorWidget::handleSmsCharLimitReached() |
251 void MsgEditorWidget::handleSmsCharLimitReached() |
254 { |
252 { |
255 mSmsCharLimitReached = false; |
253 mSmsCharLimitReached = false; |
256 |
254 |
257 HbMessageBox::question(LOC_SMS_CHAR_LIMIT_REACHED, |
255 HbMessageBox::question(LOC_SMS_CHAR_LIMIT_REACHED, |
258 this,SLOT(onSmsCharLimitReached(HbAction*)), |
256 this,SLOT(onSmsCharLimitReached(HbAction*)), |
259 LOC_DIALOG_OK, |
257 HbMessageBox::Ok | HbMessageBox::Cancel); |
260 LOC_BUTTON_CANCEL); |
|
261 |
258 |
262 |
259 |
263 } |
260 } |
264 |
261 |
265 //--------------------------------------------------------------- |
262 //--------------------------------------------------------------- |
358 // @see header |
355 // @see header |
359 //--------------------------------------------------------------- |
356 //--------------------------------------------------------------- |
360 MsgEditor::MsgEditor(QGraphicsItem *parent) |
357 MsgEditor::MsgEditor(QGraphicsItem *parent) |
361 :HbLineEdit(parent) |
358 :HbLineEdit(parent) |
362 { |
359 { |
363 this->setSmileysEnabled(true); |
|
364 this->setPlaceholderText(LOC_HINT_TEXT); |
360 this->setPlaceholderText(LOC_HINT_TEXT); |
365 } |
361 } |
366 |
362 |
367 //--------------------------------------------------------------- |
363 //--------------------------------------------------------------- |
368 // MsgEditor::focusInEvent |
364 // MsgEditor::focusInEvent |