You played it fine. There is absolutely no shame in getting it all in PF with QQ when it's 3-handed. And as stated above, he would've got in AI on the flop with an OESD and two overcards anyway.