Fix build with GCC 12 (standard attributes in middle of decl-specifiers)

"virtual Q_REQUIRED_RESULT foo bar()" -> "Q_REQUIRED_RESULT virtual foo bar()"
2 jobs for master in 1 minute and 47 seconds (queued for 24 seconds)