MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSNavigationCalibrationRemoveDelegate.cpp
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
#include "
QmitkUSNavigationCalibrationRemoveDelegate.h
"
13
14
#include <QEvent>
15
16
QmitkUSNavigationCalibrationRemoveDelegate::QmitkUSNavigationCalibrationRemoveDelegate
(QObject* parent)
17
: QStyledItemDelegate(parent)
18
{
19
}
20
21
QmitkUSNavigationCalibrationRemoveDelegate::~QmitkUSNavigationCalibrationRemoveDelegate
()
22
{
23
}
24
25
bool
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
}
QmitkUSNavigationCalibrationRemoveDelegate.h
QmitkUSNavigationCalibrationRemoveDelegate::QmitkUSNavigationCalibrationRemoveDelegate
QmitkUSNavigationCalibrationRemoveDelegate(QObject *parent=nullptr)
Definition
QmitkUSNavigationCalibrationRemoveDelegate.cpp:16
QmitkUSNavigationCalibrationRemoveDelegate::~QmitkUSNavigationCalibrationRemoveDelegate
~QmitkUSNavigationCalibrationRemoveDelegate() override
Definition
QmitkUSNavigationCalibrationRemoveDelegate.cpp:21
QmitkUSNavigationCalibrationRemoveDelegate::editorEvent
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
A QColorDialog is opened on double click events.
Definition
QmitkUSNavigationCalibrationRemoveDelegate.cpp:25
Plugins
org.mitk.gui.qt.igt.app.ultrasoundtrackingnavigation
src
internal
QmitkUSNavigationCalibrationRemoveDelegate.cpp
Generated by
1.12.0