Doc: Clarify ownership of added menu for QMenuBar::addMenu(QMenu *)

Change-Id: Iaafba9557ece36607c86d5be4fbb5e4ac2e459d3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
bb10
Alexander Volkov 2019-12-05 13:21:09 +03:00
parent 8339ce2155
commit 5272c35073
1 changed files with 2 additions and 1 deletions

View File

@ -851,7 +851,8 @@ QMenu *QMenuBar::addMenu(const QIcon &icon, const QString &title)
}
/*!
Appends \a menu to the menu bar. Returns the menu's menuAction().
Appends \a menu to the menu bar. Returns the menu's menuAction(). The menu bar
does not take ownership of the menu.
\note The returned QAction object can be used to hide the corresponding
menu.