Enable use of variables in filter selection

This commit is contained in:
WarmUpTill
2023-04-26 16:45:24 +02:00
committed by WarmUpTill
parent 530bbc07c5
commit 8cd818b80e
12 changed files with 441 additions and 122 deletions

View File

@@ -105,6 +105,21 @@ std::string SourceSelection::ToString(bool resolve) const
return "";
}
bool SourceSelection::operator==(const SourceSelection &other) const
{
if (_type != other._type) {
return false;
}
if (_type == Type::SOURCE) {
return _source == other._source;
}
auto v1 = _variable.lock();
auto v2 = other._variable.lock();
return v1 == v2;
}
SourceSelection SourceSelectionWidget::CurrentSelection()
{
SourceSelection s;