Move to alert when pressing go button

- Still need an option to auto-update to nearest WSR-88D site
This commit is contained in:
Dan Paulat 2022-10-16 01:17:10 -05:00
parent c117078335
commit 3692ef75f2
5 changed files with 23 additions and 2 deletions

View file

@ -158,9 +158,10 @@ void AlertDockWidgetImpl::ConnectSignals()
connect(self_->ui->alertGoButton,
&QPushButton::clicked,
this,
[]()
[=]()
{
// TODO: Go to alert
emit self_->MoveMap(selectedAlertCentroid_.latitude_,
selectedAlertCentroid_.longitude_);
});
}

View file

@ -27,6 +27,9 @@ public:
protected:
void showEvent(QShowEvent*) override;
signals:
void MoveMap(double latitude, double longitude);
public slots:
void HandleMapUpdate(double latitude, double longitude);