Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkInitialValuesTypeDelegate.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 
13 #ifndef QmitkInitialValuesTypeDelegate_h
14 #define QmitkInitialValuesTypeDelegate_h
15 
16 
17 #include <QStyledItemDelegate>
18 
19 #include "MitkModelFitUIExports.h"
20 
21 
25 class MITKMODELFITUI_EXPORT QmitkInitialValuesTypeDelegate : public QStyledItemDelegate
26 {
27  Q_OBJECT
28 
29 public:
30 
31  QmitkInitialValuesTypeDelegate(QObject* parent = nullptr);
32 
33  QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option
34  , const QModelIndex& index) const override;
35 
36  void setEditorData(QWidget* editor, const QModelIndex& index) const override;
37 
38  void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const override;
39 };
40 
41 #endif
MITKMODELFITUI_EXPORT
#define MITKMODELFITUI_EXPORT
Definition: MitkModelFitUIExports.h:15
MitkModelFitUIExports.h
QmitkInitialValuesTypeDelegate
An item delegate for rendering and editing the type of a initial value. It assumes that the type is e...
Definition: QmitkInitialValuesTypeDelegate.h:25