Qt5 compatibility update