Use QVector instead of std::vector
MapDisplay: Only try to resize the map if the size actually changed