--- a/src/hbwidgets/popups/hbmessagebox.cpp Thu Sep 02 20:44:51 2010 +0300
+++ b/src/hbwidgets/popups/hbmessagebox.cpp Fri Sep 17 08:32:10 2010 +0300
@@ -159,12 +159,11 @@
}
}
+#ifdef HB_EFFECTS
void HbMessageBoxPrivate::_q_appearEffectEnded(HbEffect::EffectStatus status)
{
#ifdef Q_OS_SYMBIAN
-
-
if ( (status.reason == Hb::EffectFinished) || ( (status.reason == Hb::EffectCancelled) && (!mStartEffect) )) {
CSystemToneService *pSystemTone = systemToneService();
if(!pSystemTone) {
@@ -189,6 +188,7 @@
#endif // Q_OS_SYMBIAN
}
+#endif
/*!
@beta
@@ -625,6 +625,32 @@
}
+void HbMessageBox::showEvent(QShowEvent *event)
+{
+#ifndef HB_EFFECTS
+ #ifdef Q_OS_SYMBIAN
+ CSystemToneService *pSystemTone = systemToneService();
+ if(!pSystemTone) {
+ return ;
+ }
+ switch(mMessageBoxType) {
+ case HbMessageBox::MessageTypeInformation:
+ pSystemTone->PlayTone(CSystemToneService::EInformationBeep);
+ break;
+ case HbMessageBox::MessageTypeWarning:
+ pSystemTone->PlayTone(CSystemToneService::EWarningBeep);
+ break;
+ case HbMessageBox::MessageTypeQuestion:
+ pSystemTone->PlayTone(CSystemToneService::EConfirmationBeep);
+ break;
+ default:
+ break;
+ }
+ #endif // Q_OS_SYMBIAN
+#endif //HB_EFFECTS
+ HbDialog::showEvent(event);
+}
+
/*!
\deprecated HbMessageBox::question(const QString&,QObject*,const char*,const QString&,const QString&,QGraphicsWidget*,QGraphicsScene*,QGraphicsItem*)