From e648a778db0da0d31a596f7d97fe291f7e10df10 Mon Sep 17 00:00:00 2001 From: Kenz Dale Date: Fri, 17 Aug 2012 11:51:50 +0200 Subject: [PATCH] Enabled caching for map widget. --- .../src/libs/opmapcontrol/src/mapwidget/homeitem.cpp | 1 + .../src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/homeitem.cpp b/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/homeitem.cpp index d05b612a9..93a4aa113 100644 --- a/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/homeitem.cpp +++ b/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/homeitem.cpp @@ -39,6 +39,7 @@ namespace mapcontrol this->setZValue(4); coord=internals::PointLatLng(50,50); RefreshToolTip(); + setCacheMode(QGraphicsItem::DeviceCoordinateCache); } void HomeItem::RefreshToolTip() diff --git a/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp b/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp index 494482283..ea9653fa1 100644 --- a/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp +++ b/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp @@ -45,6 +45,7 @@ namespace mapcontrol connect(core,SIGNAL(OnMapDrag()),this,SLOT(ChildPosRefresh())); connect(core,SIGNAL(OnMapZoomChanged()),this,SLOT(ChildPosRefresh())); //resize(); + setCacheMode(QGraphicsItem::ItemCoordinateCache); } void MapGraphicItem::start()