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
QmitkDoseVisualStyleDelegate.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 QmitkDoseVisualStyleDelegate_h
18 #define QmitkDoseVisualStyleDelegate_h
19 
20 
22 #include <QStyledItemDelegate>
23 
24 #include "MitkRTUIExports.h"
25 
26 
31 class MITKRTUI_EXPORT QmitkDoseVisualStyleDelegate : public QStyledItemDelegate
32 {
33  Q_OBJECT
34 
35 public:
36 
37  QmitkDoseVisualStyleDelegate(QObject *parent = 0);
38 
39  void paint(QPainter *painter, const QStyleOptionViewItem &option
40  , const QModelIndex &index) const;
41 
42  bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option,
43  const QModelIndex &index);
44 
45 };
46 
47 #endif
#define MITKRTUI_EXPORT