Hi, I am very new to Quick books BUT if you look you will find that there is a way of accounting for dividends as retained earnings.
You may need to undo the way that you accounted for it - well thats the way that I did it.
Re enter as a transfer and retained earnings from equity. This will then show up on your cashflow report as a reduction in retained profit.
Looks ok to me , but of course I might be wrong !