pqSignalAdaptorSelectionTreeWidget has two roles.
More...
#include <pqSignalAdaptorSelectionTreeWidget.h>
Inherits QObject.
pqSignalAdaptorSelectionTreeWidget has two roles.
- It is used to connect a selection property with a QTreeWidget (typically pqTreeWidget) It also updates the list of available values every time the domain changes. Example use of this adaptor is to connect :
- "AddVolumeArrayName" property of a CTHPart filter to a pqTreeWidget widget.
- "Functions" property of "P3DReader" with a pqTreeWidget.
Definition at line 56 of file pqSignalAdaptorSelectionTreeWidget.h.
◆ pqSignalAdaptorSelectionTreeWidget()
pqSignalAdaptorSelectionTreeWidget::pqSignalAdaptorSelectionTreeWidget |
( |
QTreeWidget * |
treeWidget, |
|
|
vtkSMProperty * |
property |
|
) |
| |
Constructor.
- Parameters
-
treeWidget | The QTreeWidget controlled by this adaptor. |
property | The property linked to the widget. |
◆ ~pqSignalAdaptorSelectionTreeWidget()
pqSignalAdaptorSelectionTreeWidget::~pqSignalAdaptorSelectionTreeWidget |
( |
| ) |
|
|
override |
◆ values()
QList<QList<QVariant> > pqSignalAdaptorSelectionTreeWidget::values |
( |
| ) |
const |
Returns a list of strings which correspond to the currently selected values.
i.e. only the strings for items currently selected by the user are returned.
◆ setItemCreatorFunction()
void pqSignalAdaptorSelectionTreeWidget::setItemCreatorFunction |
( |
QTreeWidgetItem * |
fptr)(QTreeWidget *, const QStringList & | ) |
|
|
inline |
This adaptor create QTreeWidgetItem instances by default when new entries are to be shown in the widget.
To change the type of QTreeWidgetItem subclass created, simply set a function pointer to a callback which will be called every time a new item is needed. The signature for the callback is: QTreeWidgetItem* callback(QTreeWidget* parent, const QStringList& val)
Definition at line 85 of file pqSignalAdaptorSelectionTreeWidget.h.
◆ valuesChanged
void pqSignalAdaptorSelectionTreeWidget::valuesChanged |
( |
| ) |
|
|
signal |
Fired whenever the values change.
◆ setValues
void pqSignalAdaptorSelectionTreeWidget::setValues |
( |
const QList< QList< QVariant > > & |
values | ) |
|
|
slot |
Set the selected value on the widget.
All the strings in the
- Parameters
-
values | are set as selected in the tree widget. If a string is present that is not in the domain, it will be ignored. |
◆ QList
QList pqSignalAdaptorSelectionTreeWidget::QList |
|
readwrite |
The documentation for this class was generated from the following file: