homescreenapp/hsutils/src/hsmenudialogfactory.cpp
changeset 97 66b5fe3c07fd
parent 90 3ac3aaebaee5
equal deleted inserted replaced
95:32e56106abf2 97:66b5fe3c07fd
    57     HbMessageBox::MessageBoxType type(HbMessageBox::MessageTypeNone);
    57     HbMessageBox::MessageBoxType type(HbMessageBox::MessageTypeNone);
    58 
    58 
    59     switch (options) {
    59     switch (options) {
    60 
    60 
    61     case OkCancel:
    61     case OkCancel:
    62 
       
    63         actionIdentifiers << hbTrId("txt_common_button_ok");
    62         actionIdentifiers << hbTrId("txt_common_button_ok");
    64         actionIdentifiers << hbTrId("txt_common_button_cancel");
    63         actionIdentifiers << hbTrId("txt_common_button_cancel");
    65         type = HbMessageBox::MessageTypeQuestion;
    64         type = HbMessageBox::MessageTypeQuestion;
    66         break;
    65         break;
    67 
    66 
    68     case Close:
    67     case Close:
    69 
       
    70         actionIdentifiers << hbTrId("txt_common_button_close");
    68         actionIdentifiers << hbTrId("txt_common_button_close");
    71         type = HbMessageBox::MessageTypeInformation;
    69         type = HbMessageBox::MessageTypeInformation;
    72         break;
    70         break;
    73 
    71 
       
    72     case DeleteCancel:
       
    73         actionIdentifiers << hbTrId("txt_common_button_delete");
       
    74         actionIdentifiers << hbTrId("txt_common_button_cancel");
       
    75         type = HbMessageBox::MessageTypeQuestion;
       
    76         break;
       
    77         
    74     default:
    78     default:
    75         break;
    79         break;
    76     }
    80     }
    77 
    81 
    78     QScopedPointer<HbMessageBox> box(new HbMessageBox(type));
    82     QScopedPointer<HbMessageBox> box(new HbMessageBox(type));