Don't use Qt constants redefinitions but rather use stat.h macros.
The code mix the two usage, uniforms them.
cc @sitter @dfaure