1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

GCS - Map cleaning

This commit is contained in:
PT_Dreamer 2012-05-26 17:18:55 +01:00
parent bb7e85cf2c
commit 8fbef19f5b

View File

@ -216,9 +216,10 @@ namespace mapcontrol
}
void MapGraphicItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
qDebug()<<"mouse press";
if(!IsMouseOverMarker())
{
qDebug()<<"not over marker";
if(event->button() == config->DragButton && CanDragMap()&& !((event->modifiers()==Qt::ShiftModifier)||(event->modifiers()==Qt::ControlModifier)))
{
core->mouseDown.SetX(event->pos().x());