enable compatibility to Qt4