changes for Qt5 migration