uistyle: Fix weird way of registering Qt types