Use QRect::united instead of unite

The unite() method has been deprecated in favor of united(). In Qt 4,
united() just calls unite(); in Qt 5, it is completely removed.
Merge pull request #1334 from simonsonc/qrect-united

Use QRect::united instead of unite