diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-12-18 16:05:52 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-12-18 19:35:11 +0100 |
commit | 322e5b7f5e35db73f7d7730a6fff558e153ad356 (patch) | |
tree | a029cf540194cc34d6914e81fd3ac7794aef9d18 /src/widgets/doc/src/widgets-and-layouts/layout.qdoc | |
parent | 2614347ab8aa0ec0b1ea8f383ae795cfdb6ae2ac (diff) |
QtWidget docs: small fixes
Apply some minor fixes to the widget docs
- use nullptr
- use c++11 initializer list
- properly delete widget when cleaning the layout (QTBUG-29471)
- rework CardLayout example to make it work with Qt5
Fixes: QTBUG-29471
Change-Id: Ie2ee9f75eb8faf97d2bbd2c25e7013d4f30d8dd0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/widgets/doc/src/widgets-and-layouts/layout.qdoc')
-rw-r--r-- | src/widgets/doc/src/widgets-and-layouts/layout.qdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/doc/src/widgets-and-layouts/layout.qdoc b/src/widgets/doc/src/widgets-and-layouts/layout.qdoc index 65569a9cd2..e42e6d42ec 100644 --- a/src/widgets/doc/src/widgets-and-layouts/layout.qdoc +++ b/src/widgets/doc/src/widgets-and-layouts/layout.qdoc @@ -300,7 +300,7 @@ \list \li A data structure to store the items handled by the layout. Each item is a \l{QLayoutItem}{QLayoutItem}. We will use a - QList in this example. + QVector in this example. \li \l{QLayout::}{addItem()}, how to add items to the layout. \li \l{QLayout::}{setGeometry()}, how to perform the layout. \li \l{QLayout::}{sizeHint()}, the preferred size of the layout. |