parameters: (version)
return_statement: return 'Qt_%d_%d_%d' % (major, minor, patch)
docstring: Convert a version number to a SIP tag.  version is the version number.
docstring_summary: Convert a version number to a SIP tag.  version is the version number.
docstring_tokens: Convert a version number to a SIP tag . version is the version number .
function: def version_to_sip_tag(version):
      """ Convert a version number to a SIP tag.  version is the version number.
      """
  
      # Anything after Qt v5 is assumed to be Qt v6.0.
      if version > 0x060000:
          version = 0x060000
  
      major = (version >> 16) & 0xff
      minor = (version >> 8) & 0xff
      patch = version & 0xff
  
      return 'Qt_%d_%d_%d' % (major, minor, patch)
function_tokens: def version_to_sip_tag ( version ) : # Anything after Qt v5 is assumed to be Qt v6.0. if version > 0x060000 : version = 0x060000 major = ( version >> 16 ) & 0xff minor = ( version >> 8 ) & 0xff patch = version & 0xff return 'Qt_%d_%d_%d' % ( major , minor , patch )