Update mainwindow.cpp

new signals API