Refactoring computation of text value for FileModel
Postponing the creation of a QVariant object as long as possible, primarily operating on QString by default.