Qt version of compilation directive