Add conversion functions between Solarus and Qt rectangles.