AnalogTimeLaneModel
- class caqtus.gui.condetrol.timelanes_editor.analog_lane_editor.AnalogTimeLaneModel(name: str, parent: QObject | None = None)
Bases:
ColoredTimeLaneModel[AnalogTimeLane]- data(index, role: int = Qt.ItemDataRole.DisplayRole)
Returns its brush for the Qt.ItemDataRole.ForegroundRole role.
- flags(index) ItemFlag
Return the flags for the given index.
By default, the flags are set to ItemIsEnabled, ItemIsEditable, and ItemIsSelectable.
- setData( )
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,
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.