qt5base-lts/tests/auto/widgets
Gabriel de Dietrich 2c634a1326 Introducing QSplitter::replaceWidget()
This new API addresses the use case where we want to replace
a widget by another one inside the splitter. Up to now, the
way of doing would include removing one widget and add the
new one at the same place. However, this triggers a series
of resize and paint events because of the successive changes
in the splitter's children leading to a relayout of the
remaining children.

The new widget inherits the same properties as in the previous
slot: geometry, visibility, and collapsed states. The previous
widget, returned by the function, loses its parent and is hidden.

Change-Id: I3dddf6b582d5ce2db8cff3c40bc46084263123ac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
2016-12-02 16:15:58 +00:00
..
dialogs Merge remote-tracking branch 'origin/5.7' into 5.8 2016-11-16 12:35:36 +01:00
effects QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
gestures autotests: use QTest::createTouchDevice() 2016-06-10 13:07:17 +00:00
graphicsview Merge remote-tracking branch 'origin/5.7' into 5.8 2016-11-01 06:02:55 +01:00
itemviews Change confusing Q_DEAD_CODE_FROM_QT4_FOO define 2016-10-14 08:19:29 +00:00
kernel Introduce QWindow::setFlag and QWidget::setWindowFlag 2016-11-22 12:40:33 +00:00
styles Merge remote-tracking branch 'origin/5.7' into 5.8 2016-10-06 20:12:27 +02:00
util Add a resetClean() method to the undo stack 2016-10-24 13:03:40 +00:00
widgets Introducing QSplitter::replaceWidget() 2016-12-02 16:15:58 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00