21 const Variant empty_link = Variant::fromValue(std::string());
void setLink(const SessionItem *item)
Set link to given item.
The main object representing an editable/displayable/serializable entity.
SessionItem * setEditable(bool value)
Sets editable flag to given value (fluent interface).
bool setData(const T &value, int role=ItemDataRole::DATA, bool direct=false)
Sets data for a given role.
T * item(const std::string &tag) const
Returns first item under given tag casted to a specified type.
const model_type LinkedItemType
materialitems.h Collection of materials to populate MaterialModel.