Another patch for qt5, missed in the big commit before.