QItemSelectionModel subclass with logging support for tree views.
More...
#include <treeselectionmodel.h>
|
| 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.
|
| |
|
| | TreeSelectionModel (QAbstractItemModel *model, QObject *parent=nullptr) |
| | Construct with a model and optional parent.
|
| |
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.
◆ TreeSelectionModel()
| TreeSelectionModel::TreeSelectionModel |
( |
QAbstractItemModel * |
model, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
Construct with a model and optional parent.
- Parameters
-
| model | The item model this selection model operates on |
| parent | Optional QObject parent |
◆ select [1/2]
| virtual void TreeSelectionModel::select |
( |
const QItemSelection & |
selection, |
|
|
QItemSelectionModel::SelectionFlags |
command |
|
) |
| |
|
overridevirtualslot |
Apply a selection change described by a QItemSelection.
- Parameters
-
| selection | The selection to apply |
| command | Selection 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
-
| index | Index to select |
| command | Selection flags controlling how the selection is modified |
The documentation for this class was generated from the following file: