Improve automatic graph configuraion when traces change domains

This commit is contained in:
Jan Käberich 2024-04-05 10:28:43 +02:00
parent 7dd2c0501e
commit d99dab35aa
5 changed files with 41 additions and 16 deletions

View file

@ -317,6 +317,11 @@ YAxis::Type YAxis::getType() const
return type;
}
bool YAxis::isSupported(XAxis::Type type, TraceModel::DataSource source)
{
return getSupported(type, source).count(this->type);
}
std::set<YAxis::Type> YAxis::getSupported(XAxis::Type type, TraceModel::DataSource source)
{
std::set<YAxis::Type> ret = {YAxis::Type::Disabled};