fontlabapp.qt.tables.selection · declarations 001
Back to fontlabapp.qt.tables.selection
select_model_rows
select_model_rows(widget: Any, rows: Iterable[int], flags: Any, row_count: Callable[[], int], *, extend: bool = False) -> None
Apply Select|Rows; replace or extend without Qt's selectRow replacement.
Read row_count per nonnegative row after acquiring the model and selection model. Preserve native callback timing, duplicates and propagated errors.
select_table_ranges
select_table_ranges(widget: Any, indexes: Iterable[Any], column_count: Callable[[], int], range_factory: Callable[[], Callable[..., Any]]) -> None
Replace with full-column table ranges; keep unfiltered converted rows.
Clear first, then read the current column count and range type, then consume indexes. Native range construction and selection errors propagate without rollback. A zero column count deliberately passes a final column of -1, as before.
selected_model_rows
selected_model_rows(widget: Any) -> list[int]
Return sorted unique full-row selections from the native selection model.
selected_range_rows
selected_range_rows(widget: Any) -> list[int]
Expand overlapping inclusive native table ranges into sorted unique rows.