Improve Polyline MapItem


The old implementation used polygons added to a QPainterPath for the
screenBounds and the "contains" area calculation on each screen update
and thus had a huge performance impact when using more complex
polyline map items with several hundred points.
The new implementation only calculates the screenBounds on each screen
update. However, the contains check uses a similar logic to the
previous QPainterPath approach but is way more performant. This is
achieved by testing only parts of the polyline and not the whole
QPainterPath at once.

Change-Id: Ia332343f40ff865079fc86f0241a3f46a650162d
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
commita2af44354014d1f3d10727a7381fb5273917ae1f
parentf49cff62775b6699a6a2edcdcfe0c9f6b3ecc7d2
authorWolfgang Bremer <wolfgang@w-bremer.de>
committerAlex Blasche <alexander.blasche@theqtcompany.com>
commit timeMon, 1 Jun 2015 05:30:53 +0000