Change deprecated warnings

With Qt 5.15.2 further functions are marked as deprecated, resulting in warnings. This should be resolved to still compile warnings free.