diff --git a/ground/src/plugins/opmap/opmapgadgetwidget.cpp b/ground/src/plugins/opmap/opmapgadgetwidget.cpp index 0b9ec450e..c2dc36b7c 100644 --- a/ground/src/plugins/opmap/opmapgadgetwidget.cpp +++ b/ground/src/plugins/opmap/opmapgadgetwidget.cpp @@ -432,9 +432,11 @@ void OPMapGadgetWidget::contextMenuEvent(QContextMenuEvent *event) menu.addSeparator(); + /* menu.addAction(findPlaceAct); menu.addSeparator(); + */ menu.addAction(showSafeAreaAct); QMenu safeAreaSubMenu(tr("Safe Area Radius") + " (" + QString::number(m_map->Home->SafeArea()) + "m)", this); @@ -1275,10 +1277,12 @@ void OPMapGadgetWidget::createActions() copyMouseLonToClipAct->setStatusTip(tr("Copy the mouse longitude to the clipboard")); connect(copyMouseLonToClipAct, SIGNAL(triggered()), this, SLOT(onCopyMouseLonToClipAct_triggered())); + /* findPlaceAct = new QAction(tr("&Find place"), this); findPlaceAct->setShortcut(tr("Ctrl+F")); findPlaceAct->setStatusTip(tr("Find a location")); connect(findPlaceAct, SIGNAL(triggered()), this, SLOT(onFindPlaceAct_triggered())); + */ showCompassAct = new QAction(tr("Show compass"), this); showCompassAct->setStatusTip(tr("Show/Hide the compass")); diff --git a/ground/src/plugins/opmap/opmapgadgetwidget.h b/ground/src/plugins/opmap/opmapgadgetwidget.h index a1d0a6267..ae2fb9afc 100644 --- a/ground/src/plugins/opmap/opmapgadgetwidget.h +++ b/ground/src/plugins/opmap/opmapgadgetwidget.h @@ -141,7 +141,7 @@ private slots: void on_horizontalSliderZoom_sliderMoved(int position); // void on_toolButtonAddWaypoint_clicked(); // void on_treeViewWaypoints_clicked(QModelIndex index); - void on_toolButtonHome_clicked(); +// void on_toolButtonHome_clicked(); // void on_toolButtonNextWaypoint_clicked(); // void on_toolButtonPrevWaypoint_clicked(); // void on_toolButtonHoldPosition_clicked(); @@ -179,7 +179,7 @@ private slots: void onCopyMouseLatLonToClipAct_triggered(); void onCopyMouseLatToClipAct_triggered(); void onCopyMouseLonToClipAct_triggered(); - void onFindPlaceAct_triggered(); +// void onFindPlaceAct_triggered(); void onShowCompassAct_toggled(bool show); void onShowUAVAct_toggled(bool show); void onShowHomeAct_toggled(bool show);