MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSNavigationCalibrationRemoveDelegate.cpp
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============================================================================*/
13
14#include <QEvent>
15
20
24
25bool QmitkUSNavigationCalibrationRemoveDelegate::editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem& option, const QModelIndex &index)
26{
27 if( event->type() == QEvent::MouseButtonPress )
28 {
29 model->setData(index, QVariant(false));
30 return true;
31 }
32 else
33 {
34 return QStyledItemDelegate::editorEvent(event, model, option, index);
35 }
36}
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
A QColorDialog is opened on double click events.