Using QFlags makes code shorter and more readable.
Merge branch 'flags'