Medical Imaging Interaction Toolkit  2023.04.00
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
QmitkPropertyItem::GetParent
QmitkPropertyItem * GetParent() const
QmitkPropertyItem::GetRow
int GetRow()
QmitkPropertyItem::AppendChild
void AppendChild(QmitkPropertyItem *child)
QmitkPropertyItem
Definition: QmitkPropertyItem.h:19
QmitkPropertyItem::~QmitkPropertyItem
~QmitkPropertyItem()
QmitkPropertyItem::GetChild
QmitkPropertyItem * GetChild(int row) const
QmitkPropertyItem::QmitkPropertyItem
QmitkPropertyItem(const QList< QVariant > &data)
QmitkPropertyItem::GetData
QVariant GetData(int column) const
QmitkPropertyItem::GetChildCount
int GetChildCount() const
QmitkPropertyItem::GetColumnCount
int GetColumnCount() const