Changes for Qt4->Qt5 migration