Fix QSerialPort::bindableStopBits return value type


This was overlooked when introducing bindable properties. The property
has a type QSerialPort::StopBits, but the method returns
QBindable<bool>.

Use QT_REMOVED_SINCE +  QT6_{DECL,IMPL}_NEW_OVERLOAD machinery to
provide a new function with the same name, but the correct return
type QBindable<QSerialPort::StopBits>.

The implementation in removed_api.cpp cannot use the new overload,
because there is no conversion between QBindable<bool> and
QBindable<QSerialPort::StopBits>. So it has to include a private
header and keep the old implementation.

Add a compile-time test that checks the return type of the method.

[ChangeLog][Potentially Source-Incompatible Changes][QSerialPort]
QSerialPort::bindableStopBits() now returns
QBindable<QSerialPort::StopBits> instead of QBindable<bool>.

Fixes: QTBUG-117887
Change-Id: I5aa4f6e2e2dd2b3348150dd0cf692a01ac5bd88e
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
commit3bdac6109c9c908eb21f16936e6aad94bb8c5014
parent22f851d21d70b71cb709905be4289bcb2e3c97de
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 31 Oct 2023 13:36:14 +0100