Window/ScreenCapture: Remove arg from maximumFrameRateChanged signal
The signal "maximumFrameRateChanged" in QScreenCapture and
QWindowCapture is directly exposed to QML in the corresponding QML
classes. This signal has passed a std::optional<qreal> parameter, which
is unusable from QML. The prior solution has been to shadow the signal
in the QML-classes.
Shadowing members is strongly discouraged, as discussed during API
review. This patch makes us remove the parameter, and properly reuse the
signal in QML. Auto-tests have been updated correspondingly.
Pick-to: 6.12
Change-Id: I83e207478df726de5a88809571c8c62edfbe8fd8
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
| commit | cca96547c93cae26434a97985a88ee6fbf67af63 |
| parent | a33973842fdd866e4c08d4eed5f532d18dbb8880 |
| author | Nils Petter Skålerud <nils.petter.skalerud@qt.io> |
| committer | Nils Petter Skålerud <nils.petter.skalerud@qt.io> |
| commit time | Tue, 25 Aug 2026 14:16:20 +0000 |
- M src/multimedia/recording/qscreencapture.h
- M src/multimedia/recording/qwindowcapture.h
- M src/multimediaquick/qquickscreencapture.cpp
- M src/multimediaquick/qquickscreencapture_p.h
- M src/multimediaquick/qquickwindowcapture.cpp
- M src/multimediaquick/qquickwindowcapture_p.h
- M tests/auto/integration/qml/screencapture/tst_screencapturebackend.qml
- M tests/auto/integration/qml/windowcapture/tst_windowcapturebackend.qml
- M tests/auto/unit/multimediaquick/tst_screencapture.qml
- M tests/auto/unit/multimediaquick/tst_windowcapture.qml