Modify to satisfy Qt5.