Just a heads-up that the Button::paintButton method documentation is incomplete. It says “It’s better to use this than the paint method, because” and that’s the end of the description.
Maybe I was just being enigmatic!
I like to mentally fill that in with “because I said so.”