2024-02-12 12:07:01 +00:00
|
|
|
{{- if eq .type "unknown" -}}
|
|
|
|
unknown
|
|
|
|
{{- else -}}
|
|
|
|
{{- $link := "#ERROR" -}}
|
|
|
|
{{- 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-14 23:16:37 +00:00
|
|
|
{{- $member := "" -}}
|
|
|
|
|
|
|
|
{{- if .prop -}}
|
|
|
|
{{- $member = printf ".%s" .prop -}}
|
|
|
|
{{- if eq .type "qt" -}}
|
|
|
|
{{- $link = printf "%s#%s-prop" $link .prop -}}
|
|
|
|
{{- else if eq .type "local" -}}
|
|
|
|
{{- $link = printf "%s#prop.%s" $link .prop -}}
|
|
|
|
{{- end -}}
|
2024-07-20 09:18:06 +00:00
|
|
|
{{- else if .func -}}
|
|
|
|
{{- $member = printf ".%s()" .func -}}
|
|
|
|
{{- if eq .type "qt" -}}
|
|
|
|
{{- $link = printf "%s#%s-method" $link .func -}}
|
|
|
|
{{- else if eq .type "local" -}}
|
|
|
|
{{- $link = printf "%s#func.%s" $link .func -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- else if .signal -}}
|
|
|
|
{{- $member = printf ".%s()" .signal -}}
|
|
|
|
{{- if eq .type "qt" -}}
|
|
|
|
{{- $link = printf "%s#%s-signal" $link .signal -}}
|
|
|
|
{{- else if eq .type "local" -}}
|
|
|
|
{{- $link = printf "%s#signal.%s" $link .signal -}}
|
|
|
|
{{- end -}}
|
2024-07-14 23:16:37 +00:00
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
<a href="{{ $link }}">{{ .name }}{{ $member }}</a>{{ $of | safeHTML -}}
|
2024-02-12 12:07:01 +00:00
|
|
|
{{- end -}}
|