Use QRecF for drawing legend text to align text correctly
Use mouse press for legend/map swap