A QComboBox that edits a mitk::EnumerationProperty.
More...
#include <QmitkEnumerationPropertyWidget.h>
A QComboBox that edits a mitk::EnumerationProperty.
Populates the combo box with the enumeration strings from the property and bidirectionally synchronizes selection changes. When the property value changes externally, the combo box selection updates. When the user selects a different item, the property value is updated.
- See also
- QmitkPropertyViewFactory, mitk::EnumerationProperty
Definition at line 38 of file QmitkEnumerationPropertyWidget.h.
◆ QmitkEnumerationPropertyWidget()
| QmitkEnumerationPropertyWidget::QmitkEnumerationPropertyWidget |
( |
QWidget * |
parent = nullptr | ) |
|
Construct the widget.
- Parameters
-
| [in] | parent | The parent widget. |
◆ ~QmitkEnumerationPropertyWidget()
| QmitkEnumerationPropertyWidget::~QmitkEnumerationPropertyWidget |
( |
| ) |
|
|
override |
◆ OnIndexChanged
| void QmitkEnumerationPropertyWidget::OnIndexChanged |
( |
int |
index | ) |
|
|
protectedslot |
◆ SetProperty()
Bind this widget to a mitk::EnumerationProperty.
Populates the combo box with all enum strings from the property. Pass nullptr to clear the binding and the combo box.
- Parameters
-
| [in] | property | The enumeration property to edit. |
◆ propView
| _EnumPropEditorImpl* QmitkEnumerationPropertyWidget::propView |
|
protected |
The documentation for this class was generated from the following file: