mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:00:04 +00:00
Open alert dialog when an alert is selected on the map
This commit is contained in:
parent
efb03ab9cc
commit
aec52f940d
7 changed files with 37 additions and 4 deletions
|
|
@ -114,6 +114,13 @@ void AlertDockWidget::HandleMapUpdate(double latitude, double longitude)
|
|||
}
|
||||
}
|
||||
|
||||
void AlertDockWidget::SelectAlert(const types::TextEventKey& key)
|
||||
{
|
||||
// View alert
|
||||
p->alertDialog_->SelectAlert(key);
|
||||
p->alertDialog_->show();
|
||||
}
|
||||
|
||||
void AlertDockWidgetImpl::ConnectSignals()
|
||||
{
|
||||
connect(self_->ui->alertFilter,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/qt/types/text_event_key.hpp>
|
||||
|
||||
#include <QDockWidget>
|
||||
|
||||
namespace Ui
|
||||
|
|
@ -32,6 +34,7 @@ signals:
|
|||
|
||||
public slots:
|
||||
void HandleMapUpdate(double latitude, double longitude);
|
||||
void SelectAlert(const types::TextEventKey& key);
|
||||
|
||||
private:
|
||||
friend class AlertDockWidgetImpl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue