|
ParaView
|
pqSignalAdaptorSelectionTreeWidget has two roles. More...
#include <pqSignalAdaptorSelectionTreeWidget.h>
Public Slots | |
| void | setValues (const QList< QList< QVariant > > &values) |
| Set the selected value on the widget. | |
Signals | |
| void | valuesChanged () |
| Fired whenever the values change. | |
Public Member Functions | |
| pqSignalAdaptorSelectionTreeWidget (QTreeWidget *treeWidget, vtkSMProperty *property) | |
| Constructor. | |
| virtual | ~pqSignalAdaptorSelectionTreeWidget () |
| QList< QList< QVariant > > | values () const |
| Returns a list of strings which correspond to the currently selected values. | |
| void | setItemCreatorFunction (QTreeWidgetItem *(fptr)(QTreeWidget *, const QStringList &)) |
| This adaptor create QTreeWidgetItem instances by default when new entries are to be shown in the widget. | |
Properties | |
| QList | QList |
pqSignalAdaptorSelectionTreeWidget has two roles.
Definition at line 56 of file pqSignalAdaptorSelectionTreeWidget.h.
| pqSignalAdaptorSelectionTreeWidget::pqSignalAdaptorSelectionTreeWidget | ( | QTreeWidget * | treeWidget, |
| vtkSMProperty * | property | ||
| ) |
Constructor.
| domain | The StringListDomain from which the adaptor can obtain the list of possible values for this widget. |
| treeWidget | The QTreeWidget controlled by this adaptor. |
| virtual pqSignalAdaptorSelectionTreeWidget::~pqSignalAdaptorSelectionTreeWidget | ( | ) | [virtual] |
| 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.
| 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 81 of file pqSignalAdaptorSelectionTreeWidget.h.
| void pqSignalAdaptorSelectionTreeWidget::valuesChanged | ( | ) | [signal] |
Fired whenever the values change.
| void pqSignalAdaptorSelectionTreeWidget::setValues | ( | const QList< QList< QVariant > > & | values | ) | [slot] |
Set the selected value on the widget.
All the strings in the are set as selected in the tree widget. If a string is present that is not in the domain, it will be ignored.
QList pqSignalAdaptorSelectionTreeWidget::QList [read, write] |
Definition at line 59 of file pqSignalAdaptorSelectionTreeWidget.h.
1.7.5.1