1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

Enabled caching for map widget.

This commit is contained in:
Kenz Dale 2012-08-17 11:51:50 +02:00
parent 62041f40ad
commit e648a778db
2 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ namespace mapcontrol
this->setZValue(4); this->setZValue(4);
coord=internals::PointLatLng(50,50); coord=internals::PointLatLng(50,50);
RefreshToolTip(); RefreshToolTip();
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
} }
void HomeItem::RefreshToolTip() void HomeItem::RefreshToolTip()

View File

@ -45,6 +45,7 @@ namespace mapcontrol
connect(core,SIGNAL(OnMapDrag()),this,SLOT(ChildPosRefresh())); connect(core,SIGNAL(OnMapDrag()),this,SLOT(ChildPosRefresh()));
connect(core,SIGNAL(OnMapZoomChanged()),this,SLOT(ChildPosRefresh())); connect(core,SIGNAL(OnMapZoomChanged()),this,SLOT(ChildPosRefresh()));
//resize(); //resize();
setCacheMode(QGraphicsItem::ItemCoordinateCache);
} }
void MapGraphicItem::start() void MapGraphicItem::start()