From 580fc133a6149fb06ac8b0a4a53a955f9f21fa5f Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Mon, 20 Mar 2023 19:10:06 +0100 Subject: [PATCH] Doc/QButtonGroup: Do not mention deprecated/removed signal QButtonGroup::buttonClicked(int) was deprecated in Qt5 and removed in Qt6 so don't mention it in the documentation. Use the correct replacement idClicked(int) instead. Fixes: QTBUG-102131 Change-Id: I3d3cd90a2f1ed4a6484827bd882142a9a845d1c5 Reviewed-by: Friedemann Kleint --- src/widgets/widgets/qbuttongroup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/widgets/qbuttongroup.cpp b/src/widgets/widgets/qbuttongroup.cpp index 3a992fed74..079ef45e90 100644 --- a/src/widgets/widgets/qbuttongroup.cpp +++ b/src/widgets/widgets/qbuttongroup.cpp @@ -57,8 +57,8 @@ void QButtonGroupPrivate::detectCheckedButton() In addition, QButtonGroup can map between integers and buttons. You can assign an integer id to a button with setId(), and retrieve it with id(). The id of the currently checked button is - available with checkedId(), and there is an overloaded signal - buttonClicked() which emits the id of the button. The id \c {-1} + available with checkedId(), and there is a signal + idClicked() that emits the id of the button. The id \c {-1} is reserved by QButtonGroup to mean "no such button". The purpose of the mapping mechanism is to simplify the representation of enum values in a user interface.