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:
parent
62041f40ad
commit
e648a778db
@ -39,6 +39,7 @@ namespace mapcontrol
|
||||
this->setZValue(4);
|
||||
coord=internals::PointLatLng(50,50);
|
||||
RefreshToolTip();
|
||||
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
|
||||
}
|
||||
|
||||
void HomeItem::RefreshToolTip()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user