equal
deleted
inserted
replaced
203 iconName = "qtg_small_favorite"; |
203 iconName = "qtg_small_favorite"; |
204 |
204 |
205 mMarkFavouriteAction->setText( |
205 mMarkFavouriteAction->setText( |
206 hbTrId("txt_notes_opt_remove_from_favorites")); |
206 hbTrId("txt_notes_opt_remove_from_favorites")); |
207 } else { |
207 } else { |
208 iconName = ""; |
208 iconName = " "; |
209 |
209 |
210 mMarkFavouriteAction->setText( |
210 mMarkFavouriteAction->setText( |
211 hbTrId("txt_notes_opt_mark_as_favorite")); |
211 hbTrId("txt_notes_opt_mark_as_favorite")); |
212 } |
212 } |
213 |
213 |
218 viewMenu->insertAction(mMarkToDoAction, mNewNoteAction); |
218 viewMenu->insertAction(mMarkToDoAction, mNewNoteAction); |
219 |
219 |
220 // Set the sub heading |
220 // Set the sub heading |
221 mViewHeading->setPlainText(hbTrId("txt_notes_subhead_note")); |
221 mViewHeading->setPlainText(hbTrId("txt_notes_subhead_note")); |
222 } else { |
222 } else { |
223 mFavouriteIcon->setIcon(HbIcon("")); |
223 mFavouriteIcon->setIcon(HbIcon(" ")); |
224 |
224 |
225 // For handling the edit of note when text is given as input |
225 // For handling the edit of note when text is given as input |
226 mTextEditor->setPlainText(mOwner->mModifiedNote.description()); |
226 mTextEditor->setPlainText(mOwner->mModifiedNote.description()); |
227 |
227 |
228 // Set the sub heading |
228 // Set the sub heading |
427 OstTraceFunctionEntry0( NOTESNOTEEDITOR_MARKNOTEASFAVOURITE_ENTRY ); |
427 OstTraceFunctionEntry0( NOTESNOTEEDITOR_MARKNOTEASFAVOURITE_ENTRY ); |
428 if (mOwner->mModifiedNote.favourite()) { |
428 if (mOwner->mModifiedNote.favourite()) { |
429 mOwner->mModifiedNote.setFavourite(0); |
429 mOwner->mModifiedNote.setFavourite(0); |
430 |
430 |
431 // Update the icon. |
431 // Update the icon. |
432 mFavouriteIcon->setIcon(HbIcon("")); |
432 mFavouriteIcon->setIcon(HbIcon(" ")); |
433 |
433 |
434 // Change the text on the action. |
434 // Change the text on the action. |
435 mMarkFavouriteAction->setText( |
435 mMarkFavouriteAction->setText( |
436 hbTrId("txt_notes_opt_mark_as_favorite")); |
436 hbTrId("txt_notes_opt_mark_as_favorite")); |
437 } else { |
437 } else { |
551 entry.setType(AgendaEntry::TypeNote); |
551 entry.setType(AgendaEntry::TypeNote); |
552 |
552 |
553 mOwner->mModifiedNote = mOwner->mOriginalNote = entry; |
553 mOwner->mModifiedNote = mOwner->mOriginalNote = entry; |
554 mOwner->mNewEntry = true; |
554 mOwner->mNewEntry = true; |
555 |
555 |
556 mFavouriteIcon->setIcon(HbIcon("")); |
556 mFavouriteIcon->setIcon(HbIcon(" ")); |
557 |
557 |
558 // For handling the edit of note when text is given as input |
558 // For handling the edit of note when text is given as input |
559 mTextEditor->setPlainText(mOwner->mModifiedNote.description()); |
559 mTextEditor->setPlainText(mOwner->mModifiedNote.description()); |
560 |
560 |
561 // Set the sub heading |
561 // Set the sub heading |