Tracks the selected track and selected subtitle items in the Subtitles dock. More...
| Import Statement: | import org.shotcut.qml |
SubtitlesSelectionModel is available as the subtitlesSelectionModel context property in the Subtitles dock.
selectedItems : list<var> |
The list of currently selected subtitle item indices (read-only).
selectedTrackModelIndex : QModelIndex |
The model index of the currently selected track (read-only).
selectedItemsChanged() |
Emitted when the set of selected subtitle items changes.
Note: The corresponding handler is onSelectedItemsChanged.
selectedTrackModelIndexChanged(QModelIndex trackModelIndex) |
Emitted when the selected track changes. trackModelIndex is the new track's model index.
Note: The corresponding handler is onSelectedTrackModelIndexChanged.
bool isItemSelected(int itemIndex) |
Returns true if the subtitle item at itemIndex is currently selected.
void selectItem(int itemIndex) |
Selects only the subtitle item at itemIndex, clearing any other selection.
void selectRange(int itemIndex) |
Extends the selection from the last single-selection anchor to itemIndex.
int selectedTrack() |
Returns the zero-based index of the currently selected track, or -1 if none.