Re #7950. Fix usage of QString method.