code: public static boolean hasQObject(final Reader reader) throws IOException {
      final MetaObjectParser parser = new MetaObjectParser();
      parser.parse(reader);
      return parser.hasQObject;
  
    }
docs: Determines if source file contains Q_OBJECT.
  
  @param reader
  Reader source reader
  @throws IOException
  if unable to read source file
  @return boolean true if source contains Q_OBJECT