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>
commite9ead74ec4169d483de0b711986b5b560bbb730a
parentc902d5bc7ce9c1af4bd297e459baa8b34201e34d
authorPaolo Angelelli <paolo.angelelli@theqtcompany.com>
committerAlex Blasche <alexander.blasche@theqtcompany.com>
commit timeTue, 26 Jan 2016 07:31:21 +0000