headerData() is a method of the model that your model can overwrite similar to how you overwrite data().

Cheers,
_