From 7adfb315e51517b46504d1328d8c1a8fc70e6df4 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Mon, 15 Jan 2024 20:20:48 +0100 Subject: [PATCH] Doc: Remove wrong comment in QStyle::pixelMetric() doc Pick-to: 6.6 6.5 6.2 Change-Id: Iebb5794a166899c986e1c408a254184b22bc276e Reviewed-by: Giuseppe D'Angelo (cherry picked from commit d0d5794a3decca8501d26387bc8281c61f0bd4ba) Reviewed-by: Qt Cherry-pick Bot --- src/widgets/styles/qstyle.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/widgets/styles/qstyle.cpp b/src/widgets/styles/qstyle.cpp index 13199152013..60b2f51e952 100644 --- a/src/widgets/styles/qstyle.cpp +++ b/src/widgets/styles/qstyle.cpp @@ -1494,8 +1494,7 @@ void QStyle::drawItemPixmap(QPainter *painter, const QRect &rect, int alignment, Returns the value of the given pixel \a metric. 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 - option can be cast to the appropriate type using the + the metric. The \a option can be cast to the appropriate type using the qstyleoption_cast() function. Note that the \a option may be zero even for PixelMetrics that can make use of it. See the table below for the appropriate \a option casts: