Reduce usage of QStringRef::toString() in project manager/cmake.

Change-Id: I5d60c663d8a258334dde9b93b4f76a4bea760a70
Reviewed-by: Daniel Teske <daniel.teske@digia.com>