Qt: Restore Qt4AndQt5Automoc test behavior.
Merge topic 'qt-automoc' into next

305c2069 Qt: Restore Qt4AndQt5Automoc test behavior.