Port away from deprecated QRegion::rects()
Not a fan of the deprecation of this myself, but Qt does what Qt wants