mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-31 09:32:17 -05:00
The sliderMoved signal doesn't trigger when clicking on the slider, only the valueChanged signal. According to QTBUG-72995 this is intentional, since the documentation states that sliderDown also needs to be true for the sliderMoved signal to be triggered. As for why sliderDown isn't true when clicking, or why that would even be necessary for a signal that should trigger when the slider is moved (and it very clearly moves) remains a mystery. Also gets rid of the wrong usage of the on_foo_bar slot declaration, which should only be used for signals where the sender is part of a UI file and it gets connected automatically. While it of course is possible to connect it manually, this is against convention and can cause confusion. In this case it was particularly wrong since even if tBar was part of a UI file (which it isn't), the method should have been called on_tBar_valueChanged instead of on_tbar_position_valueChanged.
48 KiB
48 KiB