QSplitter: Add note about ownership transfer to addWidget() and insertWidget()
Change-Id: I971db2c25e4e667a416f58d148e18c4f11c349f1 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>bb10
parent
dec0b15685
commit
22bcf7ba34
|
|
@ -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()
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue