A QCheckBox that edits a mitk::BoolProperty.
More...
#include <QmitkBoolPropertyWidget.h>
A QCheckBox that edits a mitk::BoolProperty.
Bidirectionally synchronizes a checkbox with a mitk::BoolProperty. When the property changes externally, the checkbox updates. When the user toggles the checkbox, the property value is updated. If no property is set or the property is removed, the checkbox enters a tristate (indeterminate) disabled state.
- See also
- QmitkPropertyViewFactory
Definition at line 32 of file QmitkBoolPropertyWidget.h.
◆ QmitkBoolPropertyWidget() [1/2]
| QmitkBoolPropertyWidget::QmitkBoolPropertyWidget |
( |
QWidget * |
parent = nullptr | ) |
|
Construct the widget without an associated property.
- Parameters
-
| [in] | parent | The parent widget. |
◆ QmitkBoolPropertyWidget() [2/2]
| QmitkBoolPropertyWidget::QmitkBoolPropertyWidget |
( |
const QString & |
text, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Construct the widget with a label text.
- Parameters
-
| [in] | text | The checkbox label text. |
| [in] | parent | The parent widget. |
◆ ~QmitkBoolPropertyWidget()
| QmitkBoolPropertyWidget::~QmitkBoolPropertyWidget |
( |
| ) |
|
|
override |
◆ onToggle
| void QmitkBoolPropertyWidget::onToggle |
( |
bool |
on | ) |
|
|
protectedslot |
◆ SetProperty()
| void QmitkBoolPropertyWidget::SetProperty |
( |
mitk::BoolProperty * |
property | ) |
|
Bind this widget to a mitk::BoolProperty.
- Parameters
-
| [in] | property | The property to edit. Pass nullptr to clear the binding. |
When set to nullptr the widget enters a tristate indeterminate disabled state.
◆ m_PropEditorImpl
| _BoolPropertyWidgetImpl* QmitkBoolPropertyWidget::m_PropEditorImpl |
|
protected |
The documentation for this class was generated from the following file: