src/gui/widgets/qstackedwidget.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 0 1918ee327afb
child 33 3e2da88830cd
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     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 {