Update src/widgets/helper/NotebookTab.cpp

Co-authored-by: nerix <nero.9@hotmail.de>
This commit is contained in:
hemirt 2024-10-15 18:03:14 +02:00 committed by GitHub
parent 3b64f142e6
commit 70f497d3bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -411,16 +411,12 @@ void NotebookTab::setHighlightState(HighlightState newHighlightStyle,
const auto &splits = splitContainer->getSplits(); const auto &splits = splitContainer->getSplits();
for (const auto &split : splits) for (const auto &split : splits)
{ {
auto &&filterIdsSource = channelViewSource.getFilterIds(); auto filterIdsSource = channelViewSource.getFilterIds();
auto uniqueFilterIdsSource = auto filterIdsSplit = split->getChannelView().getFilterIds();
QSet(filterIdsSource.cbegin(), filterIdsSource.cend());
auto &&filterIdsSplit = split->getChannelView().getFilterIds();
auto uniqueFilterIdsSplit =
QSet(filterIdsSplit.cbegin(), filterIdsSplit.cend());
auto isSubset = []<typename T>(QSet<T> sub, QSet<T> super) { auto isSubset = []<typename T>(const QList<T> &sub, const QList<T> &super) {
return std::ranges::none_of(sub, [&super](const auto &subItem) { return std::ranges::all_of(sub, [&super](const auto &subItem) {
return !super.contains(subItem); return super.contains(subItem);
}); });
}; };