Where is the source of flight modes?

Hi everyone,

I would like to make some tiny changes of the flight mode altitude control (ALTCTL). Basically, I would like the plane to roll slowly when I put the altitude control mode on. My software is Qgroundcontrol and I use a Pixhawk. In the Qgroundcontrol library under QT Creator, what the names of the files relative to flight modes?