I think , if you use QT_USE_SSU instead of QT_NO_SSU, you can remove "else" branch and also remove "#define" below and replace "!defined" by simple "#ifdef"