1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

OP37/GCS MapLib - Fixes a bug which Edouard was experiencing.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1434 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
zedamota 2010-08-27 15:24:13 +00:00 committed by zedamota
parent ae5177b70c
commit 6443b7c830

View File

@ -40,10 +40,7 @@ namespace mapcontrol
map=new MapGraphicItem(core,config);
mscene.addItem(map);
this->setScene(&mscene);
// uav->setPos(30,30);
this->adjustSize();
connect(&mscene,SIGNAL(sceneRectChanged(QRectF)),map,SLOT(resize(QRectF)));
connect(map,SIGNAL(zoomChanged(double)),this,SIGNAL(zoomChanged(double)));
connect(map->core,SIGNAL(OnCurrentPositionChanged(internals::PointLatLng)),this,SIGNAL(OnCurrentPositionChanged(internals::PointLatLng)));
connect(map->core,SIGNAL(OnEmptyTileError(int,core::Point)),this,SIGNAL(OnEmptyTileError(int,core::Point)));
@ -111,6 +108,7 @@ namespace mapcontrol
}
void OPMapWidget::showEvent(QShowEvent *event)
{
connect(&mscene,SIGNAL(sceneRectChanged(QRectF)),map,SLOT(resize(QRectF)));
map->start();
QGraphicsView::showEvent(event);
}