Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryQModelIndexObject.h
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 
18 #ifndef BERRYQMODELINDEXOBJECT_H_
19 #define BERRYQMODELINDEXOBJECT_H_
20 
21 #include <berryObject.h>
22 #include <berryMacros.h>
23 
25 
26 #include <QModelIndex>
27 
28 namespace berry
29 {
30 
32 {
33 
34 public:
35 
37 
38  QModelIndexObject(const QModelIndex& index);
39 
40  const QModelIndex& GetQModelIndex() const;
41 
42  bool operator==(const Object* obj) const override;
43 
44 private:
45 
46  QModelIndex m_QModelIndex;
47 
48 };
49 
50 }
51 
52 #endif /* BERRYQMODELINDEXOBJECT_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT