QAccessibleWidgetV2: make the dtor protected

QAccessibleWidget (i.e. V1) has a protected dtor, so V2, which merely
extends V1 because we can't add new virtuals (via a new base class)
due to BC constraints, shouldn't differ in this respect.

Amends bb2121551c3d7b1af1553710bc211ba0e39b4212.

Found in API-review.

Change-Id: I0c9a00691a14c600b020ff1a9f433634bb7c8d24
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 5efcbf9fb83f24963f6bf40a8dc76571ab02e984)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2025-06-13 07:42:57 +02:00 committed by Qt Cherry-pick Bot
parent 59db97fdaf
commit 65db00df78

View File

@ -69,8 +69,11 @@ class Q_WIDGETS_EXPORT QAccessibleWidgetV2 : public QAccessibleWidget,
public:
explicit QAccessibleWidgetV2(QWidget *object, QAccessible::Role role = QAccessible::Client);
explicit QAccessibleWidgetV2(QWidget *object, QAccessible::Role role, const QString &name);
protected:
~QAccessibleWidgetV2() override;
public:
void *interface_cast(QAccessible::InterfaceType t) override;
// QAccessibleAttributesInterface