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>