Correctly handle #include in qobject snippet