2024-02-12 12:07:01 +00:00
|
|
|
{{- if eq .type "unknown" -}}
|
|
|
|
unknown
|
|
|
|
{{- else -}}
|
2024-07-21 22:38:01 +00:00
|
|
|
{{- $link := "" -}}
|
2024-02-12 12:07:01 +00:00
|
|
|
{{- if eq .type "qt" -}}
|
|
|
|
{{- $link = printf "https://doc.qt.io/qt-6/%s-%s.html" (lower (replace .module "." "-")) (lower .name) -}}
|
|
|
|
{{- else if eq .type "local" -}}
|
|
|
|
{{- $link = printf "/docs/types/%s/%s" (lower .module) (lower .name) -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- $of := "" -}}
|
|
|
|
{{- if .of -}}
|
|
|
|
{{- $of = printf "<%s>" (partial "qmltype.html" .of) }}
|
|
|
|
{{- end -}}
|
|
|
|
|
2024-07-21 22:38:01 +00:00
|
|
|
{{- $prefix := "" -}}
|
2024-07-14 23:16:37 +00:00
|
|
|
{{- $member := "" -}}
|
|
|
|
|
2024-07-21 22:38:01 +00:00
|
|
|
{{- if .mtype -}}
|
|
|
|
{{- if .type -}}
|
|
|
|
{{- $member = printf ".%s" .mname -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $member = .mname -}}
|
2024-07-14 23:16:37 +00:00
|
|
|
{{- end -}}
|
2024-07-21 22:38:01 +00:00
|
|
|
|
|
|
|
{{- if eq .mtype "prop" -}}
|
|
|
|
{{- if eq .type "qt" -}}
|
|
|
|
{{- $link = printf "%s#%s-prop" $link .mname -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $link = printf "%s#prop.%s" $link .mname -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- else if eq .mtype "func" -}}
|
|
|
|
{{- $member = printf "%s()" $member -}}
|
|
|
|
{{- if eq .type "qt" -}}
|
|
|
|
{{- $link = printf "%s#%s-method" $link .mname -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $link = printf "%s#func.%s" $link .mname -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- else if eq .mtype "signal" -}}
|
|
|
|
{{- $prefix = "[signal] " -}}
|
|
|
|
{{- $member = printf "%s()" $member -}}
|
|
|
|
{{- if eq .type "qt" -}}
|
|
|
|
{{- $link = printf "%s#%s-signal" $link .mname -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $link = printf "%s#signal.%s" $link .mname -}}
|
|
|
|
{{- end -}}
|
2024-07-20 09:18:06 +00:00
|
|
|
{{- end -}}
|
2024-07-14 23:16:37 +00:00
|
|
|
{{- end -}}
|
|
|
|
|
2024-07-21 22:38:01 +00:00
|
|
|
<a href="{{ $link }}">{{ $prefix }}{{ .name }}{{ $member }}</a>{{ $of | safeHTML -}}
|
2024-02-12 12:07:01 +00:00
|
|
|
{{- end -}}
|