forked from DFHack/dfhack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemxmlModel.h
More file actions
30 lines (25 loc) · 902 Bytes
/
Copy pathmemxmlModel.h
File metadata and controls
30 lines (25 loc) · 902 Bytes
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
#ifndef memxmlModel_H
#define memxmlModel_H
#include <qabstractitemmodel.h>
#include <qdom.h>
class DomItem;
class MemXMLModel : public QAbstractItemModel
{
Q_OBJECT
public:
MemXMLModel(QDomDocument document, QObject *parent = 0);
~MemXMLModel();
QVariant data(const QModelIndex &index, int role) const;
Qt::ItemFlags flags(const QModelIndex &index) const;
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const;
QModelIndex index(int row, int column,
const QModelIndex &parent = QModelIndex()) const;
QModelIndex parent(const QModelIndex &child) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
private:
QDomDocument domDocument;
DomItem *rootItem;
};
#endif // memxmlModel