Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkDoseValueDelegate.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkDoseValueDelegate_h
18 #define QmitkDoseValueDelegate_h
19 
20 
21 #include <QStyledItemDelegate>
22 
23 #include "MitkRTUIExports.h"
24 
30 class MITKRTUI_EXPORT QmitkDoseValueDelegate : public QStyledItemDelegate
31 {
32  Q_OBJECT
33 
34 public:
38  QmitkDoseValueDelegate(QObject *parent = 0);
39 
43  void paint(QPainter *painter, const QStyleOptionViewItem &option
44  , const QModelIndex &index) const;
45 
49  QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option
50  , const QModelIndex &index) const;
51 
55  void setEditorData(QWidget *editor, const QModelIndex &index) const;
56 
60  void setModelData(QWidget *editor, QAbstractItemModel* model, const QModelIndex &index) const;
61 };
62 
63 #endif /* QMITKPROPERTIESTABLEMODEL_H_ */
#define MITKRTUI_EXPORT
An item delegate for rendering and editing dose values. The delegate assumes that the model uses the ...