CameraTimeLaneModel

class caqtus.gui.condetrol.timelanes_editor.camera_lane_editor.CameraTimeLaneModel(name: str, parent: QObject | None = None)

Bases: TimeLaneModel[CameraTimeLane]

data(index, role: int = Qt.ItemDataRole.DisplayRole)

Return the data to be shown to the user for the given index and role.

See PySide6.QtCore.QAbstractItemModel.data() for more information on the roles that can be used.

This method must be implemented by subclasses, typically by calling the lane_value() method and returning the appropriate value for the given role.

setData(
index,
value: Any,
role: int = Qt.ItemDataRole.EditRole,
)

Set the data for the given index and role.

See PySide6.QtCore.QAbstractItemModel.setData() for more information on the roles that can be used.

This method must be implemented by subclasses, typically by calling the set_lane_value() method with an adequate value.

insertRow(
row,
parent: QModelIndex | QPersistentModelIndex = _DEFAULT_INDEX,
) bool

Insert a row at the given row index.

This method must be implemented by subclasses, typically by calling the insert_lane_value() method with an adequate value.