DigitalTimeLaneModel

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

Bases: ColoredTimeLaneModel[DigitalTimeLane]

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

Returns its brush for the Qt.ItemDataRole.ForegroundRole 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.