LLMRegistryDelegate

Paints the rows of LLMRegistryModel, at the heights of a provider row and a model row.

Inherits QStyledItemDelegate
Group libllm

Declared in src/libs/libllm/llm/ui/LLMRegistryModel.hpp.

Detailed description

The name, the status and the icon come from the model's roles. The size of a row comes from its kind and not from its text, so a view of 100 000 rows does not measure 100 000 texts (§OCP-T6).

Member function documentation

sizeHint

[override virtual] QSize LLMRegistryDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const

Reimplements: QStyledItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const.

Returns the size of the row of index: the height of a provider row or a model row, from its kind. The width of option does not count.

In this section