KanoopGuiQt 1.3.0
Qt GUI utility library
Loading...
Searching...
No Matches
TreeSelectionModel Class Reference

QItemSelectionModel subclass with logging support for tree views. More...

#include <treeselectionmodel.h>

+ Inheritance diagram for TreeSelectionModel:
+ Collaboration diagram for TreeSelectionModel:

Public Slots

virtual void select (const QModelIndex &index, QItemSelectionModel::SelectionFlags command) override
 Select a single index with the given selection flags.
 
virtual void select (const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) override
 Apply a selection change described by a QItemSelection.
 

Public Member Functions

 TreeSelectionModel (QAbstractItemModel *model, QObject *parent=nullptr)
 Construct with a model and optional parent.
 

Detailed Description

QItemSelectionModel subclass with logging support for tree views.

Overrides select() to allow subclasses or debug instrumentation to intercept selection changes made on a tree view.

Definition at line 15 of file treeselectionmodel.h.

Constructor & Destructor Documentation

◆ TreeSelectionModel()

TreeSelectionModel::TreeSelectionModel ( QAbstractItemModel *  model,
QObject *  parent = nullptr 
)

Construct with a model and optional parent.

Parameters
modelThe item model this selection model operates on
parentOptional QObject parent

Member Function Documentation

◆ select [1/2]

virtual void TreeSelectionModel::select ( const QItemSelection &  selection,
QItemSelectionModel::SelectionFlags  command 
)
overridevirtualslot

Apply a selection change described by a QItemSelection.

Parameters
selectionThe selection to apply
commandSelection flags controlling how the selection is modified

◆ select [2/2]

virtual void TreeSelectionModel::select ( const QModelIndex &  index,
QItemSelectionModel::SelectionFlags  command 
)
overridevirtualslot

Select a single index with the given selection flags.

Parameters
indexIndex to select
commandSelection flags controlling how the selection is modified

The documentation for this class was generated from the following file: