Medical Imaging Interaction Toolkit  2024.12.00
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 (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 QmitkDoseVisualStyleDelegate_h
14 #define QmitkDoseVisualStyleDelegate_h
15 
16 
18 #include <QStyledItemDelegate>
19 
20 #include "MitkRTUIExports.h"
21 
22 
27 class MITKRTUI_EXPORT QmitkDoseVisualStyleDelegate : public QStyledItemDelegate
28 {
29  Q_OBJECT
30 
31 public:
32 
33  explicit QmitkDoseVisualStyleDelegate(QObject *parent = nullptr);
34 
35  void paint(QPainter *painter, const QStyleOptionViewItem &option
36  , const QModelIndex &index) const override;
37 
38  bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option,
39  const QModelIndex &index) override;
40 
41 };
42 
43 #endif
MitkRTUIExports.h
MITKRTUI_EXPORT
#define MITKRTUI_EXPORT
Definition: MitkRTUIExports.h:15
QmitkDoseVisualStyleDelegate
Toolkit includes.
Definition: QmitkDoseVisualStyleDelegate.h:27