Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPropertyItem.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,
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 #ifndef QmitkPropertyItem_h
18 #define QmitkPropertyItem_h
19 
20 #include <QList>
21 #include <QVariant>
22 
24 {
25 public:
26  explicit QmitkPropertyItem(const QList<QVariant> &data);
28 
29  void AppendChild(QmitkPropertyItem *child);
30  QmitkPropertyItem *GetChild(int row) const;
31  int GetChildCount() const;
32  int GetColumnCount() const;
33  QVariant GetData(int column) const;
35  int GetRow();
36 
37 private:
39  QmitkPropertyItem &operator=(const QmitkPropertyItem &);
40 
41  QList<QVariant> m_Data;
42  QList<QmitkPropertyItem *> m_Children;
43  QmitkPropertyItem *m_Parent;
44 };
45 
46 #endif
int GetColumnCount() const
void AppendChild(QmitkPropertyItem *child)
int GetChildCount() const
QmitkPropertyItem(const QList< QVariant > &data)
QVariant GetData(int column) const
QmitkPropertyItem * GetChild(int row) const
QmitkPropertyItem * GetParent() const