Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
berryQModelIndexObject.cpp
Go to the documentation of this file.
1
/*===================================================================
2
3
BlueBerry Platform
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
#include "
berryQModelIndexObject.h
"
18
19
namespace
berry
20
{
21
22
QModelIndexObject::QModelIndexObject
(
const
QModelIndex& index) :
23
m_QModelIndex(index)
24
{
25
26
}
27
28
const
QModelIndex&
QModelIndexObject::GetQModelIndex
()
const
29
{
30
return
m_QModelIndex;
31
}
32
33
bool
QModelIndexObject::operator==
(
const
Object
* obj)
const
34
{
35
if
(
const
QModelIndexObject
* other = dynamic_cast<const QModelIndexObject*>(obj))
36
{
37
return
m_QModelIndex == other->m_QModelIndex;
38
}
39
40
return
false
;
41
}
42
43
}
berry
Definition:
QmitkPropertyItemModel.h:27
berry::QModelIndexObject::GetQModelIndex
const QModelIndex & GetQModelIndex() const
Definition:
berryQModelIndexObject.cpp:28
berry::QModelIndexObject::operator==
bool operator==(const Object *obj) const override
Definition:
berryQModelIndexObject.cpp:33
berry::QModelIndexObject::QModelIndexObject
QModelIndexObject(const QModelIndex &index)
Definition:
berryQModelIndexObject.cpp:22
berry::Object
Light weight base class for most BlueBerry classes.
Definition:
berryObject.h:78
berryQModelIndexObject.h
berry::QModelIndexObject
Definition:
berryQModelIndexObject.h:31
git
MITK
Plugins
org.blueberry.ui.qt
src
berryQModelIndexObject.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1