mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:20:04 +00:00
Renaming PhenomenonInfo to ImpactBasedWarningInfo
This commit is contained in:
parent
829d8a3152
commit
38a2831779
3 changed files with 31 additions and 26 deletions
|
|
@ -178,7 +178,8 @@ QWidget* AlertPaletteSettingsWidget::Impl::CreateStackedWidgetPage(
|
|||
QGridLayout* gridLayout = new QGridLayout(self_);
|
||||
page->setLayout(gridLayout);
|
||||
|
||||
const auto& phenomenonInfo = awips::GetPhenomenonInfo(phenomenon);
|
||||
const auto& impactBasedWarningInfo =
|
||||
awips::GetImpactBasedWarningInfo(phenomenon);
|
||||
|
||||
int row = 0;
|
||||
|
||||
|
|
@ -187,17 +188,17 @@ QWidget* AlertPaletteSettingsWidget::Impl::CreateStackedWidgetPage(
|
|||
|
||||
AddPhenomenonLine("Active", gridLayout, row++);
|
||||
|
||||
if (phenomenonInfo.hasObservedTag_)
|
||||
if (impactBasedWarningInfo.hasObservedTag_)
|
||||
{
|
||||
AddPhenomenonLine("Observed", gridLayout, row++);
|
||||
}
|
||||
|
||||
if (phenomenonInfo.hasTornadoPossibleTag_)
|
||||
if (impactBasedWarningInfo.hasTornadoPossibleTag_)
|
||||
{
|
||||
AddPhenomenonLine("Tornado Possible", gridLayout, row++);
|
||||
}
|
||||
|
||||
for (auto& category : phenomenonInfo.threatCategories_)
|
||||
for (auto& category : impactBasedWarningInfo.threatCategories_)
|
||||
{
|
||||
if (category == awips::ThreatCategory::Base)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue