use if QT_VERSION >= 0x50000 instead of a custom define