Bug fixes for old Qt [ci skip]
Updated tests