The signal at the output Q of the flip flops may be synchronized both on the leading edge and on the trailing edge of the clock signal, and in the example in question, it is synchronized on the trailing edge, i.e. at the moment of this trailing edge, the signals at Q and at D are the same.