definition of slot connection in source code rather than in UI file