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