Qt: Disable deprecated methods