mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:00:04 +00:00
switch level2 incoming elevation to optional
This commit is contained in:
parent
f481d57ed1
commit
e10ebdeb5e
9 changed files with 41 additions and 32 deletions
|
|
@ -656,7 +656,7 @@ std::vector<float> MapWidget::GetElevationCuts() const
|
|||
}
|
||||
}
|
||||
|
||||
float MapWidget::GetIncomingLevel2Elevation() const
|
||||
std::optional<float> MapWidget::GetIncomingLevel2Elevation() const
|
||||
{
|
||||
return p->radarProductManager_->incoming_level_2_elevation();
|
||||
}
|
||||
|
|
@ -1804,7 +1804,7 @@ void MapWidgetImpl::RadarProductManagerConnect()
|
|||
connect(radarProductManager_.get(),
|
||||
&manager::RadarProductManager::IncomingLevel2ElevationChanged,
|
||||
this,
|
||||
[this](float incomingElevation)
|
||||
[this](std::optional<float> incomingElevation)
|
||||
{
|
||||
Q_EMIT widget_->IncomingLevel2ElevationChanged(
|
||||
incomingElevation);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue