Replace deprecated QSet::toList and QSet::fromList()
'fromList' is deprecated: Use QSet(list.begin(), list.end()) instead. 'toList' is deprecated: Use values() instead.