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