| 73 | } |
| 74 | |
| 75 | void QmitkBoolPropertyWidget::SetProperty(mitk::BoolProperty *property) |
| 76 | { |
| 77 | if (m_PropEditorImpl) |
| 78 | { |
| 79 | delete m_PropEditorImpl; |
| 80 | m_PropEditorImpl = nullptr; |
| 81 | } |
| 82 | |
| 83 | if (!property) |
| 84 | { |
| 85 | setTristate(true); |
| 86 | setCheckState(Qt::PartiallyChecked); |
| 87 | setEnabled(false); |
| 88 | return; |
| 89 | } |
| 90 | |
| 91 | setEnabled(true); |
| 92 | m_PropEditorImpl = new _BoolPropertyWidgetImpl(property, this); |
| 93 | m_PropEditorImpl->PropertyChanged(); |
| 94 | } |
| 95 | |
| 96 | void QmitkBoolPropertyWidget::onToggle(bool on) |
| 97 | { |
no test coverage detected