modify compile error of QDragEnterEvent/DropEvent when transfer code from Qt4 to Qt5