aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Miklas <marcin.miklas@teleca.com>2010-08-27 09:52:49 +0300
committerDaniel d'Andrada <daniel.dandrada@nokia.com>2010-08-27 09:52:49 +0300
commitf2f776ae72836e0911878f76cfd9578f8db365ae (patch)
treef930c53d55b0c1c3a7059a628e2500dc0250d639
parentb325e80e6e84500e46b6d648f98912f884e9cedd (diff)
Changes: Update MDialog's addButton(buttonModel) and removeButton(buttonModel) doc
Fixes: NB#187275 - removeButton in MDialog deletes the MButtonModel in contrast to documentation RevBy: Daniel d'Andrada Details: Updated documentation to clarify what removeButton really does.
-rw-r--r--src/corelib/widgets/mdialog.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/corelib/widgets/mdialog.h b/src/corelib/widgets/mdialog.h
index ddb577c5..7218c506 100644
--- a/src/corelib/widgets/mdialog.h
+++ b/src/corelib/widgets/mdialog.h
@@ -371,7 +371,11 @@ public:
/*!
* \brief Adds a given \a button to the button box.
*
- * \param button A button
+ * \param button Button model to be added.
+ *
+ * Causes the reference count of \a button to be increased by one.
+ *
+ * \sa removeButton(MButtonModel *button)
*/
void addButton(MButtonModel *button);
@@ -412,9 +416,13 @@ public:
MButtonModel *addButton(M::StandardButton button);
/*!
- * \brief Removes \a button from the dialog without deleting it.
+ * \brief Removes \a button from dialog's button box.
+ *
+ * \param button Button model to be removed.
+ *
+ * Causes the reference count of \a button to be decreased by one.
*
- * \sa addButton()
+ * \sa addButton(MButtonModel *button)
*/
void removeButton(MButtonModel *button);