SelectionsModel
Qualified name: mv::SelectionsModel
-
class SelectionsModel : public mv::StandardItemModel
Selections model class.
Standard item model for listing selections
- Author
Thomas Kroes
Public Types
-
enum Column
Selection columns.
Values:
-
enumerator Name
-
enumerator ID
Name of the selection dataset.
-
enumerator RawDataName
Globally unique identifier of the selection dataset.
-
enumerator RawDataType
Name of the raw dataset on which the selection set is based.
-
enumerator Count
Type of the raw dataset on which the selection set is based.
-
enumerator Name
Public Functions
-
explicit SelectionsModel(QObject *parent = nullptr)
Construct with
parentobject.- Parameters:
parent – Pointer to parent object
-
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override
Get header data for
section,orientationand displayrole.- Parameters:
section – Section
orientation – Orientation
role – Data role
- Returns:
Header
-
void populateFromDataManager()
Populate the model with selections from the data manager.