From e70502b14a6b78067c18a4645570c077453c34ea Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Wed, 18 Nov 2015 19:21:21 +0100 Subject: Add clearData() call to map qml api Add clearData call to clear texture, memory and disk cache. Update mapviewer example and add "prefetchData" and "clearData" to Tools menu. Task-number: QTBUG-47292 Change-Id: Ifc71a3652688d1403f5b011ef231b59381c17ee3 Reviewed-by: Harald Meyer Reviewed-by: Alex Blasche --- examples/location/mapviewer/mapviewer.qml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/location/mapviewer/mapviewer.qml') diff --git a/examples/location/mapviewer/mapviewer.qml b/examples/location/mapviewer/mapviewer.qml index bcc2c919..eca51485 100644 --- a/examples/location/mapviewer/mapviewer.qml +++ b/examples/location/mapviewer/mapviewer.qml @@ -221,6 +221,12 @@ ApplicationWindow { stackView.currentItem.selectLanguage.connect(setLanguage) stackView.currentItem.closeForm.connect(stackView.closeForm) break + case "Clear": + map.clearData() + break + case "Prefetch": + map.prefetchData() + break default: console.log("Unsupported operation") } -- cgit v1.2.3