Medical Imaging Interaction Toolkit  2026.06.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 
30 {
31 public:
36  explicit QmitkPropertyItem(const QList<QVariant> &data);
38 
44 
50  QmitkPropertyItem *GetChild(int row) const;
51 
56  int GetChildCount() const;
57 
62  int GetColumnCount() const;
63 
69  QVariant GetData(int column) const;
70 
76 
81  int GetRow();
82 
83 private:
85  QmitkPropertyItem &operator=(const QmitkPropertyItem &);
86 
87  QList<QVariant> m_Data;
88  QList<QmitkPropertyItem *> m_Children;
89  QmitkPropertyItem *m_Parent;
90 };
91 
92 #endif
A tree item used by QmitkPropertyItemModel to represent a property row.
int GetRow()
Returns the row index of this item within its parent.
QmitkPropertyItem * GetChild(int row) const
Returns the child item at the given row.
int GetColumnCount() const
Returns the number of data columns.
void AppendChild(QmitkPropertyItem *child)
Appends a child item to this item.
QVariant GetData(int column) const
Returns the data for the given column.
QmitkPropertyItem(const QList< QVariant > &data)
Constructs a property item with the given column data.
QmitkPropertyItem * GetParent() const
Returns the parent item.
int GetChildCount() const
Returns the number of child items.