MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSZoneManagementColorDialogDelegate.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12#ifndef QmitkUSZoneManagementColorDialogDelegate_h
13#define QmitkUSZoneManagementColorDialogDelegate_h
14
15#include <QStyledItemDelegate>
16
20class QmitkUSZoneManagementColorDialogDelegate : public QStyledItemDelegate
21{
22 Q_OBJECT
23
24public:
25 explicit QmitkUSZoneManagementColorDialogDelegate(QObject* parent = nullptr);
27
31 bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override;
32};
33
34#endif
QStyledItemDelegate that provides a QColorDialog as editor.
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
A QColorDialog is opened on double click events.