Overloading QDataStream '<<' and '>>' operator help

Was hoping somebody could help me with an issue I've run into regarding the overloading of the '>>' and '<<' operators for use with a custom class and QDataStream. I'm trying to create a class and then setup overloaded operators for streaming with a QDataStream, but am getting compilation errors. I've attached a simplified version of the code I'm trying to get working along with the error message below.