Port to Qt5- not backwards compatible