QSplitter: Add note about ownership transfer to addWidget() and insertWidget()

Change-Id: I971db2c25e4e667a416f58d148e18c4f11c349f1
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
bb10
Stephan Binner 2016-05-03 09:10:32 +02:00
parent dec0b15685
commit 22bcf7ba34
1 changed files with 5 additions and 1 deletions

View File

@ -1093,6 +1093,8 @@ void QSplitter::resizeEvent(QResizeEvent *)
If \a widget is already in the splitter, it will be moved to the new position.
\note The splitter takes ownership of the widget.
\sa insertWidget(), widget(), indexOf()
*/
void QSplitter::addWidget(QWidget *widget)
@ -1107,7 +1109,9 @@ void QSplitter::addWidget(QWidget *widget)
If \a widget is already in the splitter, it will be moved to the new position.
if \a index is an invalid index, then the widget will be inserted at the end.
If \a index is an invalid index, then the widget will be inserted at the end.
\note The splitter takes ownership of the widget.
\sa addWidget(), indexOf(), widget()
*/