equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: video collection view plugin's ui utils class |
14 * Description: video collection view plugin's ui utils class |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 51 % |
18 // Version : %version: 52 % |
19 |
19 |
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include <hbglobal.h> |
21 #include <hbglobal.h> |
22 #include <hblistview.h> |
22 #include <hblistview.h> |
23 #include <hbscrollbar.h> |
23 #include <hbscrollbar.h> |
462 return; |
462 return; |
463 } |
463 } |
464 |
464 |
465 if(msg.count() > 0) |
465 if(msg.count() > 0) |
466 { |
466 { |
|
467 HbDialog *note = 0; |
467 if(error) |
468 if(error) |
468 { |
469 { |
469 HbMessageBox *messageBox = new HbMessageBox(msg, HbMessageBox::MessageTypeWarning); |
470 note = new HbMessageBox(msg, HbMessageBox::MessageTypeWarning); |
470 messageBox->setAttribute(Qt::WA_DeleteOnClose); |
471 qobject_cast<HbMessageBox*>(note)->setStandardButtons( HbMessageBox::NoButton ); |
471 messageBox->setObjectName(VIEW_UTILS_OBJECT_NAME_MESSAGE_BOX_WARNING); |
472 note->setObjectName(VIEW_UTILS_OBJECT_NAME_MESSAGE_BOX_WARNING); |
472 messageBox->show(); |
|
473 } |
473 } |
474 else |
474 else |
475 { |
475 { |
476 HbNotificationDialog *infoNote = new HbNotificationDialog(); |
476 note = new HbNotificationDialog(); |
477 infoNote->setAttribute(Qt::WA_DeleteOnClose); |
477 |
478 // only title can be two rows for HbNotificationDialog |
478 // only title can be two rows for HbNotificationDialog |
479 infoNote->setTitleTextWrapping(Hb::TextWordWrap); |
479 qobject_cast<HbNotificationDialog*>(note)->setTitleTextWrapping(Hb::TextWordWrap); |
480 infoNote->setTitle(msg); |
480 qobject_cast<HbNotificationDialog*>(note)->setTitle(msg); |
481 infoNote->setObjectName(VIEW_UTILS_OBJECT_NAME_STATUS_MSG); |
481 note->setObjectName(VIEW_UTILS_OBJECT_NAME_STATUS_MSG); |
482 infoNote->show(); |
482 } |
483 } |
483 note->setAttribute(Qt::WA_DeleteOnClose); |
|
484 note->setDismissPolicy(HbPopup::TapAnywhere); |
|
485 note->setTimeout(HbPopup::StandardTimeout); |
|
486 note->show(); |
484 } |
487 } |
485 } |
488 } |
486 |
489 |
487 // End of file |
490 // End of file |