1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

OP-1170 Got rid of all compiler warnings in opmap plugin.

This commit is contained in:
m_thread 2014-02-26 17:48:40 +01:00
parent 7e52a0f641
commit a79efd7353
3 changed files with 7 additions and 16 deletions

View File

@ -91,20 +91,13 @@ modelMapProxy::overlayType modelMapProxy::overlayTranslate(int type)
case MapDataDelegate::MODE_DRIVEENDPOINT:
case MapDataDelegate::MODE_DRIVEVECTOR:
return OVERLAY_LINE;
break;
case MapDataDelegate::MODE_FLYCIRCLERIGHT:
case MapDataDelegate::MODE_DRIVECIRCLERIGHT:
return OVERLAY_CIRCLE_RIGHT;
break;
case MapDataDelegate::MODE_FLYCIRCLELEFT:
case MapDataDelegate::MODE_DRIVECIRCLELEFT:
return OVERLAY_CIRCLE_LEFT;
break;
default:
break;
return OVERLAY_CIRCLE_LEFT;
}
}
@ -297,6 +290,10 @@ void modelMapProxy::dataChanged(const QModelIndex &topLeft, const QModelIndex &b
void modelMapProxy::rowsInserted(const QModelIndex &parent, int first, int last)
{
Q_UNUSED(parent);
Q_UNUSED(first);
Q_UNUSED(last);
/*
for (int x = first; x < last + 1; x++) {
QModelIndex index;
WayPointItem *item;
@ -326,6 +323,7 @@ void modelMapProxy::rowsInserted(const QModelIndex &parent, int first, int last)
item = myMap->WPInsert(latlng, altitude, desc, x);
}
}
*/
refreshOverlays();
}
void modelMapProxy::deleteWayPoint(int number)

View File

@ -51,10 +51,10 @@ public:
void editWaypoint(mapcontrol::WayPointItem *waypoint_item);
private:
Ui::opmap_edit_waypoint_dialog *ui;
QDataWidgetMapper *mapper;
QAbstractItemModel *model;
QItemSelectionModel *itemSelection;
Ui::opmap_edit_waypoint_dialog *ui;
private slots:
private slots:

View File

@ -490,13 +490,6 @@
</spacer>
</item>
</layout>
<zorder></zorder>
<zorder></zorder>
<zorder></zorder>
<zorder></zorder>
<zorder>verticalSpacer</zorder>
<zorder>line</zorder>
<zorder>label_7</zorder>
</widget>
</widget>
</item>