equal
deleted
inserted
replaced
187 } |
187 } |
188 |
188 |
189 /*! |
189 /*! |
190 \brief Removes a widget. |
190 \brief Removes a widget. |
191 |
191 |
192 Removes the given \a widget from the stack. The widget is not deleted. |
192 Removes the given \a widget from the stack. The widget is not destroyed. |
193 The widget is set invisible. |
|
194 |
193 |
195 Removing the current widget will set the next widget (or previous |
194 Removing the current widget will set the next widget (or previous |
196 if the current widget was the last one) to be the current widget. |
195 if the current widget was the last one) to be the current widget. |
197 |
196 |
198 Removing a widget from an index less than the current index will |
197 Removing a widget from an index less than the current index will |
199 decrement the current index, but keep the current widget. |
198 decrement the current index, but keep the current widget. |
|
199 |
|
200 Make no assumptions about the visibility of \a widget or about being part of the scene. |
|
201 If needed, call QGraphicsItem::setVisible(), QGraphicsScene::removeItem(), etc. after removeWidget(). |
200 |
202 |
201 \param widget widget to be removed. |
203 \param widget widget to be removed. |
202 */ |
204 */ |
203 void HbStackedWidget::removeWidget(QGraphicsWidget *widget) |
205 void HbStackedWidget::removeWidget(QGraphicsWidget *widget) |
204 { |
206 { |