(split) move assert test completly inside assert, and add Q_UNUSED in some generated code.
(split) move assert test completly inside assert, and add Q_UNUSED in some generated code.

[git-p4: depot-paths = "//depot/qtjambi/main/": change = 281089]

qt-generator/qt-generator,qt-generator/qt-generator,qt-generator/qt-generator