the code now uses the new Qt5 syntax for signals