diff options
author | Geir Vattekar <geir.vattekar@nokia.com> | 2012-08-21 14:10:39 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-27 23:51:30 +0200 |
commit | 46608f98c65fb27e18458e10f015338f352223d9 (patch) | |
tree | 5625fe720ae0e47692a03fb0ebd8dd8054f0da2d /src | |
parent | bbaee3afd9ee8cbe6ef42a0962bd6fda65dd7019 (diff) |
Doc: Small updates to QMenu's addAction() methods.
Task-number: QTBUG-26792
Change-Id: I41289cf10065161baca368ca195268d39cdff6cf
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/widgets/qmenu.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/widgets/widgets/qmenu.cpp b/src/widgets/widgets/qmenu.cpp index 6cc17e1d84..d6846e4cde 100644 --- a/src/widgets/widgets/qmenu.cpp +++ b/src/widgets/widgets/qmenu.cpp @@ -1368,6 +1368,8 @@ QMenu::~QMenu() The function adds the newly created action to the menu's list of actions, and returns it. + QMenu takes ownership of the returned QAction. + \sa QWidget::addAction() */ QAction *QMenu::addAction(const QString &text) @@ -1384,6 +1386,8 @@ QAction *QMenu::addAction(const QString &text) and some \a text. The function adds the newly created action to the menu's list of actions, and returns it. + QMenu takes ownership of the returned QAction. + \sa QWidget::addAction() */ QAction *QMenu::addAction(const QIcon &icon, const QString &text) @@ -1402,6 +1406,8 @@ QAction *QMenu::addAction(const QIcon &icon, const QString &text) \a receiver's \a member slot. The function adds the newly created action to the menu's list of actions and returns it. + QMenu takes ownership of the returned QAction. + \sa QWidget::addAction() */ QAction *QMenu::addAction(const QString &text, const QObject *receiver, const char* member, const QKeySequence &shortcut) @@ -1426,6 +1432,8 @@ QAction *QMenu::addAction(const QString &text, const QObject *receiver, const ch \a member slot of the \a receiver object. The function adds the newly created action to the menu's list of actions, and returns it. + QMenu takes ownership of the returned QAction. + \sa QWidget::addAction() */ QAction *QMenu::addAction(const QIcon &icon, const QString &text, const QObject *receiver, @@ -1489,6 +1497,8 @@ QMenu *QMenu::addMenu(const QIcon &icon, const QString &title) action to this menu's list of actions. It returns the newly created action. + QMenu takes ownership of the returned QAction. + \sa QWidget::addAction() */ QAction *QMenu::addSeparator() @@ -1518,6 +1528,8 @@ QAction *QMenu::insertMenu(QAction *before, QMenu *menu) the newly created action into this menu's list of actions before action \a before and returns it. + QMenu takes ownership of the returned QAction. + \sa QWidget::insertAction(), addSeparator() */ QAction *QMenu::insertSeparator(QAction *before) |