Doc: Remove wrong comment in QStyle::pixelMetric() doc

Pick-to: 6.5 6.2
Change-Id: Iebb5794a166899c986e1c408a254184b22bc276e
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
(cherry picked from commit d0d5794a3decca8501d26387bc8281c61f0bd4ba)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 7adfb315e51517b46504d1328d8c1a8fc70e6df4)
This commit is contained in:
Christian Ehrlicher 2024-01-15 20:20:48 +01:00 committed by Qt Cherry-pick Bot
parent 3028e67fbe
commit 96bc1ae559

View File

@ -1494,8 +1494,7 @@ void QStyle::drawItemPixmap(QPainter *painter, const QRect &rect, int alignment,
Returns the value of the given pixel \a metric. Returns the value of the given pixel \a metric.
The specified \a option and \a widget can be used for calculating The specified \a option and \a widget can be used for calculating
the metric. In general, the \a widget argument is not used. The \a the metric. The \a option can be cast to the appropriate type using the
option can be cast to the appropriate type using the
qstyleoption_cast() function. Note that the \a option may be zero qstyleoption_cast() function. Note that the \a option may be zero
even for PixelMetrics that can make use of it. See the table below even for PixelMetrics that can make use of it. See the table below
for the appropriate \a option casts: for the appropriate \a option casts: