Add \since 6.0 to new function

Also fix general style of the documentation.

Task-number: QTBUG-86479
Change-Id: Ia46bb3ec02d6474dd79b8ac733e0c613abc5e0d8
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
bb10
Volker Hilsheimer 2020-10-12 12:39:44 +02:00
parent 51faa0700d
commit 5c097f895d
1 changed files with 10 additions and 6 deletions

View File

@ -827,12 +827,16 @@ void QGraphicsLayoutItem::updateGeometry()
}
/*!
* returns \c true if this item is empty, i.e whether it has no content and
* should not occupy any space.
*
* The default implementation returns true if the item has been hidden unless
* its size policy has retainSizeWhenHidden set to \c true
*/
\since 6.0
Returns \c true if this item is empty, i.e whether it has no content and
should not occupy any space.
The default implementation returns \c true true if the item has been hidden,
unless its \l{sizePolicy()}{size policy} has retainSizeWhenHidden set to \c true
\sa sizePolicy()
*/
bool QGraphicsLayoutItem::isEmpty() const
{
bool isHidden = false;