SelectionProxy

Inheritance diagram of rumbapy.SelectionProxy
class SelectionProxy(model, parent=None)

The class works as an interface between the Qt views selection model and the rumba model

__init__(model, parent=None)
select(selection, command)

Prepare the selection but do not perform the selection on the model, let the kernel model handle the selection

Parameters
  • selection – [QItemSelection or QModelIndex]: The asked selection

  • command – [QItemSelectionModel.SelectionFlag] Select, Deselect or Toggle current selection with asked selection

Returns

list(QModelIndex) the new selection list