mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Disabled dragging and dropping of UAV and Home icons.
This commit is contained in:
parent
c484dcb1db
commit
28f382d472
@ -32,8 +32,8 @@ namespace mapcontrol
|
|||||||
pic.load(QString::fromUtf8(":/markers/images/home2.svg"));
|
pic.load(QString::fromUtf8(":/markers/images/home2.svg"));
|
||||||
pic=pic.scaled(30,30,Qt::IgnoreAspectRatio);
|
pic=pic.scaled(30,30,Qt::IgnoreAspectRatio);
|
||||||
this->setFlag(QGraphicsItem::ItemIgnoresTransformations,true);
|
this->setFlag(QGraphicsItem::ItemIgnoresTransformations,true);
|
||||||
this->setFlag(QGraphicsItem::ItemIsMovable,true);
|
this->setFlag(QGraphicsItem::ItemIsMovable,false);
|
||||||
this->setFlag(QGraphicsItem::ItemIsSelectable,true);
|
this->setFlag(QGraphicsItem::ItemIsSelectable,false);
|
||||||
localposition=map->FromLatLngToLocal(mapwidget->CurrentPosition());
|
localposition=map->FromLatLngToLocal(mapwidget->CurrentPosition());
|
||||||
this->setPos(localposition.X(),localposition.Y());
|
this->setPos(localposition.X(),localposition.Y());
|
||||||
this->setZValue(4);
|
this->setZValue(4);
|
||||||
|
@ -37,8 +37,8 @@ namespace mapcontrol
|
|||||||
,autosetdistance(100),altitude(0),showUAVInfo(false),showJustChanged(false)
|
,autosetdistance(100),altitude(0),showUAVInfo(false),showJustChanged(false)
|
||||||
{
|
{
|
||||||
pic.load(uavPic);
|
pic.load(uavPic);
|
||||||
this->setFlag(QGraphicsItem::ItemIsMovable,true);
|
this->setFlag(QGraphicsItem::ItemIsMovable,false);
|
||||||
this->setFlag(QGraphicsItem::ItemIsSelectable,true);
|
this->setFlag(QGraphicsItem::ItemIsSelectable,false);
|
||||||
localposition=map->FromLatLngToLocal(mapwidget->CurrentPosition());
|
localposition=map->FromLatLngToLocal(mapwidget->CurrentPosition());
|
||||||
this->setPos(localposition.X(),localposition.Y());
|
this->setPos(localposition.X(),localposition.Y());
|
||||||
this->setZValue(4);
|
this->setZValue(4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user