equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
184 { |
184 { |
185 return d_func()->layout->insertWidget(index, widget); |
185 return d_func()->layout->insertWidget(index, widget); |
186 } |
186 } |
187 |
187 |
188 /*! |
188 /*! |
189 Removes the given \a widget from the QStackedWidget. The widget |
189 Removes the given \a widget from the QStackedWidget. |
190 is \e not deleted. |
190 |
|
191 \bold{Note:} The ownership of \a widget remains the same. |
|
192 The widget is \e not deleted, but simply removed from the widget's |
|
193 stacked layout, causing it to be hidden. |
191 |
194 |
192 \sa addWidget(), insertWidget(), currentWidget() |
195 \sa addWidget(), insertWidget(), currentWidget() |
193 */ |
196 */ |
194 void QStackedWidget::removeWidget(QWidget *widget) |
197 void QStackedWidget::removeWidget(QWidget *widget) |
195 { |
198 { |