aboutsummaryrefslogtreecommitdiffstats
path: root/printing_templates
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-08-07 02:13:25 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-07 00:51:21 -0700
commit0fc9a3bf4ae532f5a9afd6d3fd8731eb16745671 (patch)
treea24b30f6acc5a8746780b03ed666447d2a745f32 /printing_templates
parentd421660f91d56ac434860a1deff17eeeacbc7e26 (diff)
downloadsubsurface-0fc9a3bf4ae532f5a9afd6d3fd8731eb16745671.tar.gz
mapwidget.qml: add a couple of helpers
Add stopZoomAnimations(), which is really just a precaution function to make sure we have stopped all animation of the map before doing calculations! Since the animation *should* be running in a separate thread, this would make sure the Map "center" and "zoomLevel" properties do not change. Add pointIsVisible(), which is a helper to determine if a point created by map.fromCoordinate() method is inside the viewport. fromCoordinate() has to be called without the "false" (clip) flag for this to work. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'printing_templates')
0 files changed, 0 insertions, 0 deletions