Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
QmitkBoolPropertyWidget.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef QmitkBoolPropertyWidget_h
13 #define QmitkBoolPropertyWidget_h
14 
16 #include <QCheckBox>
17 #include <mitkProperties.h>
18 
19 class _BoolPropertyWidgetImpl;
20 
23 {
24  Q_OBJECT
25 
26 public:
27  QmitkBoolPropertyWidget(QWidget *parent = nullptr);
28  QmitkBoolPropertyWidget(const QString &text, QWidget *parent = nullptr);
30 
32 
33 protected slots:
34 
35  void onToggle(bool on);
36 
37 protected:
38  _BoolPropertyWidgetImpl *m_PropEditorImpl;
39 };
40 
41 #endif
#define MITKQTWIDGETSEXT_EXPORT
QmitkBoolPropertyWidget(QWidget *parent=nullptr)
~QmitkBoolPropertyWidget() override
void SetProperty(mitk::BoolProperty *property)
_BoolPropertyWidgetImpl * m_PropEditorImpl
void onToggle(bool on)
QmitkBoolPropertyWidget(const QString &text, QWidget *parent=nullptr)