Skip to content

Commit

Permalink
highlight image when clicked to object pin in the map
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlich committed Jul 16, 2024
1 parent a7a8fb8 commit e1ec137
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ MainWindow::MainWindow(QWidget* parent)
imageWidgetsList, SLOT(rubberBandSelection(QRect, bool)));
connect(imageWidgetsList, SIGNAL(setExifInfo(QStringList)), exifInfo, SLOT(setNewInfo(QStringList)));
connect(map, SIGNAL(mClicked(int, bool, bool)), imageWidgetsList, SLOT(selectOne(int, bool, bool)));
connect(map, SIGNAL(oClicked(int, bool, bool)), imageWidgetsList, SLOT(selectOne(int, bool, bool)));

connect(ui->actionSave_Gps, SIGNAL(triggered()), imageWidgetsList, SLOT(saveExifGpsInAll()));
connect(ui->actionSave_Datetime, SIGNAL(triggered()), imageWidgetsList, SLOT(saveExifDateTimeInAll()));
Expand Down
2 changes: 1 addition & 1 deletion mapwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ void MapWidget::objectClicked(int id)
scriptStr << QString("markerOrObjectClicked(%1, %2);").arg(id).arg((QApplication::keyboardModifiers() & Qt::ControlModifier));

mapView->page()->runJavaScript(scriptStr.join("\n"), [](const QVariant& result) { qDebug() << result.toString(); });
// emit mClicked(id, 0, 1); // FIXME
emit oClicked(id, 0, 1);
}

void MapWidget::objectDragged(int id)
Expand Down
1 change: 1 addition & 0 deletions mapwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class MapWidget : public QDockWidget {

signals:
void mClicked(int id, bool clickMarker, bool focus);
void oClicked(int id, bool clickMarker, bool focus);
void processEvent(QKeyEvent* event);
void setGpsInImage(int id, double lat, double lon, double ele);
void setObjectGpsInImage(int id, double lat, double lon, double ele);
Expand Down

0 comments on commit e1ec137

Please sign in to comment.