-
Notifications
You must be signed in to change notification settings - Fork 0
/
characteristicsitem.h
33 lines (31 loc) · 1.04 KB
/
characteristicsitem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef IMAGECHARACTERISTICSITEM_H
#define IMAGECHARACTERISTICSITEM_H
#include "stdafx.h"
#include <QList>
#include <QVariant>
class CharacteristicsItem
{
public:
CharacteristicsItem();
CharacteristicsItem(const QList<QList<QVariant> > & data, QString header=QString(""), CharacteristicsItem *parent = 0);
~CharacteristicsItem();
void appendChild(CharacteristicsItem *child);
void appendChildren(QList<CharacteristicsItem *> children);
void clearChildren();
void setParent(CharacteristicsItem *parent);
CharacteristicsItem *child(int row);
int childCount() const;
int columnCount() const;
QVariant data(int column, int role) const;
QString getHeader();
int row() const;
void setData(QVariant data, int column=0, int role=0);
//ImageCharacteristicsItem *parent();
//void remove();
private:
QList<QList<QVariant> > _data;
QString _header;
CharacteristicsItem* _parent;
QList<CharacteristicsItem*> _childItems;
};
#endif // IMAGECHARACTERISTICSITEM_H