equal
deleted
inserted
replaced
17 |
17 |
18 // INCLUDES |
18 // INCLUDES |
19 #include "debugtraces.h" |
19 #include "debugtraces.h" |
20 #include <HbIconItem> |
20 #include <HbIconItem> |
21 #include <HbNotificationDialog> |
21 #include <HbNotificationDialog> |
|
22 #include <hbmessagebox.h> |
22 |
23 |
23 // USER INCLUDES |
24 // USER INCLUDES |
24 #include "msgunieditorsubject.h" |
25 #include "msgunieditorsubject.h" |
25 #include "UniEditorGenUtils.h" |
26 #include "UniEditorGenUtils.h" |
26 #include "msgunieditorlineedit.h" |
27 #include "msgunieditorlineedit.h" |
48 mSubjectEdit->setDefaultBehaviour(true); |
49 mSubjectEdit->setDefaultBehaviour(true); |
49 HbStyle::setItemName(mSubjectEdit,"subjectEdit"); |
50 HbStyle::setItemName(mSubjectEdit,"subjectEdit"); |
50 mSubjectEdit->setMinRows(1); |
51 mSubjectEdit->setMinRows(1); |
51 mSubjectEdit->setMaxRows(10); |
52 mSubjectEdit->setMaxRows(10); |
52 |
53 |
53 mGenUtils = new UniEditorGenUtils(); |
54 mGenUtils = q_check_ptr(new UniEditorGenUtils()); |
54 |
55 |
55 connect(mSubjectEdit, SIGNAL(contentsChanged(const QString&)), |
56 connect(mSubjectEdit, SIGNAL(contentsChanged(const QString&)), |
56 this, SLOT(onContentsChanged(const QString&))); |
57 this, SLOT(onContentsChanged(const QString&))); |
57 } |
58 } |
58 |
59 |
123 this, SLOT(onContentsChanged(const QString&))); |
124 this, SLOT(onContentsChanged(const QString&))); |
124 mSubjectEdit->clearContent(); |
125 mSubjectEdit->clearContent(); |
125 mSubjectEdit->setText(mPrevBuffer); |
126 mSubjectEdit->setText(mPrevBuffer); |
126 connect(mSubjectEdit, SIGNAL(contentsChanged(const QString&)), |
127 connect(mSubjectEdit, SIGNAL(contentsChanged(const QString&)), |
127 this, SLOT(onContentsChanged(const QString&))); |
128 this, SLOT(onContentsChanged(const QString&))); |
128 HbNotificationDialog::launchDialog(LOC_UNABLE_TO_ADD_CONTENT); |
129 HbMessageBox::information(LOC_UNABLE_TO_ADD_CONTENT, 0, 0, HbMessageBox::Ok); |
129 return; |
130 return; |
130 } |
131 } |
131 |
132 |
132 mPrevBuffer = text; |
133 mPrevBuffer = text; |
133 if(!subjectOkInSms()) |
134 if(!subjectOkInSms()) |