Fixes for the mapviewer QtLocation example
Currently identified problems with this example are:
- the map element loses focus upon provider switch, or opening some
other page (geocoding page, for example)
- caused by changes in the StackView. Solved by forcing the focus
upon map change
- selecting minimap causes segfault
- caused by dereferencing a null pointer (m_flick.m_animation)
in qquickgeomapgesturearea.cpp
- occasional (random) crashes with "QVector index out of bound" error
- the menus show up on the wrong screen most of the time if the window
spans multiple screens (but this is a broader qtquick problem)
This patch fixes the first two issues
Task-number: QTBUG-50519
Change-Id: Ic6b4a35e62e4651bd8003f47fade45f44a99d81c
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>