pqSignalAdaptorSelectionTreeWidget has two roles. More...
#include <pqSignalAdaptorSelectionTreeWidget.h>
Inherits QObject.
Public Slots | |
void | setValues (const QList< QList< QVariant >> &values) |
Set the selected value on the widget. More... | |
Signals | |
void | valuesChanged () |
Fired whenever the values change. More... | |
Public Member Functions | |
pqSignalAdaptorSelectionTreeWidget (QTreeWidget *treeWidget, vtkSMProperty *property) | |
Constructor. More... | |
~pqSignalAdaptorSelectionTreeWidget () override | |
QList< QList< QVariant > > | values () const |
Returns a list of strings which correspond to the currently selected values. More... | |
void | setItemCreatorFunction (QTreeWidgetItem *(fptr)(QTreeWidget *, const QStringList &)) |
This adaptor create QTreeWidgetItem instances by default when new entries are to be shown in the widget. More... | |
Properties | |
QList | QList |
pqSignalAdaptorSelectionTreeWidget has two roles.
Definition at line 28 of file pqSignalAdaptorSelectionTreeWidget.h.
pqSignalAdaptorSelectionTreeWidget::pqSignalAdaptorSelectionTreeWidget | ( | QTreeWidget * | treeWidget, |
vtkSMProperty * | property | ||
) |
Constructor.
treeWidget | The QTreeWidget controlled by this adaptor. |
property | The property linked to the widget. |
|
override |
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.
|
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 57 of file pqSignalAdaptorSelectionTreeWidget.h.
|
signal |
Fired whenever the values change.
Set the selected value on the widget.
All the strings in the
values | are set as selected in the tree widget. If a string is present that is not in the domain, it will be ignored. |
|
readwrite |
Definition at line 31 of file pqSignalAdaptorSelectionTreeWidget.h.