mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
Reorder and simplify resampling tabs for summary data
Show year as the left most tab, and minute as the right most tab.
This commit is contained in:
parent
b7e2d2182c
commit
267aee9d91
@ -75,7 +75,7 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
return QString( "Plot Data, %1" ).arg( RiaQDateTimeTools::dateTimePeriodName( timePeriod ) );
|
||||
return QString( "%1" ).arg( RiaQDateTimeTools::dateTimePeriodName( timePeriod ) );
|
||||
}
|
||||
}
|
||||
|
||||
@ -110,9 +110,17 @@ private:
|
||||
|
||||
static std::vector<RiaDefines::DateTimePeriod> tabs()
|
||||
{
|
||||
std::vector<RiaDefines::DateTimePeriod> dateTimePeriods = RiaQDateTimeTools::dateTimePeriods();
|
||||
dateTimePeriods.erase( std::remove( dateTimePeriods.begin(), dateTimePeriods.end(), RiaDefines::DateTimePeriod::DECADE ),
|
||||
dateTimePeriods.end() );
|
||||
std::vector<RiaDefines::DateTimePeriod> dateTimePeriods;
|
||||
dateTimePeriods.emplace_back( RiaDefines::DateTimePeriod::NONE );
|
||||
dateTimePeriods.emplace_back( RiaDefines::DateTimePeriod::YEAR );
|
||||
dateTimePeriods.emplace_back( RiaDefines::DateTimePeriod::HALFYEAR );
|
||||
dateTimePeriods.emplace_back( RiaDefines::DateTimePeriod::QUARTER );
|
||||
dateTimePeriods.emplace_back( RiaDefines::DateTimePeriod::MONTH );
|
||||
dateTimePeriods.emplace_back( RiaDefines::DateTimePeriod::WEEK );
|
||||
dateTimePeriods.emplace_back( RiaDefines::DateTimePeriod::DAY );
|
||||
dateTimePeriods.emplace_back( RiaDefines::DateTimePeriod::HOUR );
|
||||
dateTimePeriods.emplace_back( RiaDefines::DateTimePeriod::MINUTE );
|
||||
|
||||
return dateTimePeriods;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user