Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!roles.isEmpty()) {
- const int relevantRoles[] = {Qt::DisplayRole, Qt::DecorationRole, Qt::SizeHintRole, Qt::FontRole};
- if (!std::any_of(roles.cbegin(), roles.cend(), [&relevantRoles](int role) -> bool {return std::find(std::begin(relevantRoles), std::end(relevantRoles), role) != std::end(relevantRoles);})
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement