emailuis/nmailui/src/nmeditorview.cpp
changeset 66 084b5b1f02a7
parent 62 a8c646b56683
child 68 83cc6bae1de8
--- a/emailuis/nmailui/src/nmeditorview.cpp	Mon Aug 23 23:32:31 2010 +0300
+++ b/emailuis/nmailui/src/nmeditorview.cpp	Fri Sep 03 14:07:42 2010 +0300
@@ -62,7 +62,7 @@
 {
     NM_FUNCTION;
     
-    mDocumentLoader	= new HbDocumentLoader();
+    mDocumentLoader	= new NmUiDocumentLoader( mApplication.mainWindow() );
     // Set object name
     setObjectName("NmEditorView");
     // call the createToolBar on load view layout
@@ -222,10 +222,12 @@
 void NmEditorView::showChrome(bool show)
 {
     if (show) {
-        showItems(Hb::StatusBarItem | Hb::TitleBarItem | Hb::ToolBarItem);
+        setContentFullScreen(false);
+        showItems(Hb::ToolBarItem);
     }
     else {
-        hideItems(Hb::StatusBarItem | Hb::TitleBarItem | Hb::ToolBarItem);
+        setContentFullScreen(true);
+        hideItems(Hb::ToolBarItem);
     }
 }
 
@@ -933,7 +935,7 @@
                     mTBExtnContentWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
                     
                     mTBExtnContentWidget->addItem(hbTrId("txt_mail_list_photo"));
-                    mTBExtnContentWidget->addItem(hbTrId("txt_mail_list_music"));
+                    mTBExtnContentWidget->addItem(hbTrId("txt_mail_list_sound"));
                     mTBExtnContentWidget->addItem(hbTrId("txt_mail_list_video"));
                     mTBExtnContentWidget->addItem(hbTrId("txt_mail_list_other"));
                     mTBExtnContentWidget->addItem(hbTrId("txt_mail_list_new_photo"));
@@ -1549,7 +1551,8 @@
     int error = NmUtilities::openFile(file);
     file.close();
     if ( error == NmNotFoundError ) {
-        NmUtilities::displayErrorNote(hbTrId("txt_mail_dialog_unable_to_open_attachment_file_ty")); 
+        HbMessageBox *box = NmUtilities::displayWarningNote(hbTrId("txt_mail_dialog_unable_to_open_attachment_file_ty"));
+        box->setAttribute(Qt::WA_DeleteOnClose); 
     }
 }