--- a/src/hbwidgets/devicedialogs/hbdevicemessagebox.cpp Fri Sep 17 08:32:10 2010 +0300
+++ b/src/hbwidgets/devicedialogs/hbdevicemessagebox.cpp Mon Oct 04 00:38:12 2010 +0300
@@ -49,10 +49,9 @@
HbDeviceMessageBoxPrivate::~HbDeviceMessageBoxPrivate()
{
TRACE_ENTRY
- // information/warning dialogs may be left at server when client is deleted. If there are no connected
+ // Dialogs may be left at server when client is deleted. If there are no connected
// signals, device dialog widget is not deleted but runs at server and is closed by a timeout.
- if (mProperties[Type].mValue.toInt() != HbMessageBox::MessageTypeQuestion &&
- q_ptr->receivers(SIGNAL(aboutToClose())) <= 0) {
+ if (q_ptr->receivers(SIGNAL(aboutToClose())) <= 0) {
mDeviceDialog->disconnect(q_ptr, SLOT(aboutToClose()));
mDeviceDialog->disconnect(this, SLOT(triggerAction(QVariantMap)));
if (mUpdateTimerId != 0) {
@@ -536,7 +535,7 @@
msg->show();
\endcode
- \sa HbMessageBox, HbDialog, HbDeviceDialog
+ \sa HbMessageBox, HbDialog, HbDeviceDialog, CHbDeviceMessageBoxSymbian
*/
/*!
@@ -564,10 +563,10 @@
*/
/*!
- Constructor.
+ Constructs HbDeviceMessageBox.
\param type Type of the message box.
- \param parent An optional parameter.
+ \param parent Parent pointer or 0.
*/
HbDeviceMessageBox::HbDeviceMessageBox(HbMessageBox::MessageBoxType type, QObject *parent) :
QObject(parent), d_ptr(new HbDeviceMessageBoxPrivate)
@@ -580,11 +579,11 @@
}
/*!
- Constructor.
+ Constructs HbDeviceMessageBox.
\param text Message box text.
\param type Type of the message box.
- \param parent An optional parameter.
+ \param parent Parent pointer or 0.
*/
HbDeviceMessageBox::HbDeviceMessageBox(const QString &text, HbMessageBox::MessageBoxType type,
QObject *parent) : QObject(parent), d_ptr(new HbDeviceMessageBoxPrivate)
@@ -598,7 +597,9 @@
}
/*!
- Destructs the class.
+ Destructs HbDeviceMessageBox. The message box launched by show() is closed if aboutToClose()
+ signal is connected to by an application. Otherwise the box is left executing
+ and should close itself by a timeout.
*/
HbDeviceMessageBox::~HbDeviceMessageBox()
{