diff -r d2b028fd1f7d -r 4707a0db12f6 videocollection/videocollectionview/src/videocollectionviewutils.cpp --- a/videocollection/videocollectionview/src/videocollectionviewutils.cpp Fri Sep 03 12:37:43 2010 +0300 +++ b/videocollection/videocollectionview/src/videocollectionviewutils.cpp Mon Sep 20 18:25:37 2010 +0300 @@ -15,7 +15,7 @@ * */ -// Version : %version: 51 % +// Version : %version: 52 % // INCLUDE FILES #include @@ -464,23 +464,26 @@ if(msg.count() > 0) { + HbDialog *note = 0; if(error) { - HbMessageBox *messageBox = new HbMessageBox(msg, HbMessageBox::MessageTypeWarning); - messageBox->setAttribute(Qt::WA_DeleteOnClose); - messageBox->setObjectName(VIEW_UTILS_OBJECT_NAME_MESSAGE_BOX_WARNING); - messageBox->show(); + note = new HbMessageBox(msg, HbMessageBox::MessageTypeWarning); + qobject_cast(note)->setStandardButtons( HbMessageBox::NoButton ); + note->setObjectName(VIEW_UTILS_OBJECT_NAME_MESSAGE_BOX_WARNING); } else { - HbNotificationDialog *infoNote = new HbNotificationDialog(); - infoNote->setAttribute(Qt::WA_DeleteOnClose); + note = new HbNotificationDialog(); + // only title can be two rows for HbNotificationDialog - infoNote->setTitleTextWrapping(Hb::TextWordWrap); - infoNote->setTitle(msg); - infoNote->setObjectName(VIEW_UTILS_OBJECT_NAME_STATUS_MSG); - infoNote->show(); + qobject_cast(note)->setTitleTextWrapping(Hb::TextWordWrap); + qobject_cast(note)->setTitle(msg); + note->setObjectName(VIEW_UTILS_OBJECT_NAME_STATUS_MSG); } + note->setAttribute(Qt::WA_DeleteOnClose); + note->setDismissPolicy(HbPopup::TapAnywhere); + note->setTimeout(HbPopup::StandardTimeout); + note->show(); } }