1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +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);
coord=internals::PointLatLng(50,50);
RefreshToolTip();
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
}
void HomeItem::RefreshToolTip()

View File

@ -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()