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:
parent
62041f40ad
commit
e648a778db
@ -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()
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user