DomItem.h 389 Bytes
Newer Older
1 2
#ifndef DOMITEM_H
#define DOMITEM_H
pixhawk's avatar
pixhawk committed
3

4 5
#include <QDomNode>
#include <QHash>
pixhawk's avatar
pixhawk committed
6

7 8 9 10 11 12 13 14 15
class DomItem
{
public:
    DomItem(QDomNode &node, int row, DomItem *parent = 0);
    ~DomItem();
    DomItem *child(int i);
    DomItem *parent();
    QDomNode node() const;
    int row();
pixhawk's avatar
pixhawk committed
16

17 18 19 20 21 22
private:
    QDomNode domNode;
    QHash<int,DomItem*> childItems;
    DomItem *parentItem;
    int rowNumber;
};
pixhawk's avatar
pixhawk committed
23

24
#endif