My expectation is that this codeshare situation should post as an AA flight with AA earning rates.
As for the actual crediting process... I am going through that right now. Filed a missing credit form today because my AA codeshare on QR did not automatically post to my account (yet the flights before and after did post... but those were prime flights not codeshares).