Quasi-median graphs from sets of partitions