-
Notifications
You must be signed in to change notification settings - Fork 7
/
findresultitem.h
45 lines (38 loc) · 1.07 KB
/
findresultitem.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
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef FINDRESULTITEM_H
#define FINDRESULTITEM_H
#include <QList>
#include <QVariant>
#include <QVector>
class TreeItem;
class VymModel;
class FindResultItem
{
public:
FindResultItem(const QVector<QVariant> &data, FindResultItem *parent = 0);
~FindResultItem();
FindResultItem *child(int number);
int childCount() const;
int columnCount() const;
QVariant data(int column) const;
int row() const;
bool insertChildren(int position, int count, int columns);
bool insertColumns(int position, int columns);
FindResultItem *parent();
bool removeChildren(int position, int count);
bool removeColumns(int position, int columns);
int childNumber() const;
bool setData(int column, const QVariant &value);
void setOriginal (TreeItem *ti);
int getOriginalID();
void setOriginalIndex(int i);
int getOriginalIndex ();
VymModel* getOrgModel();
private:
QList<FindResultItem*> childItems;
QVector<QVariant> itemData;
FindResultItem *parentItem;
int orgID;
int orgIndex;
VymModel *orgModel;
};
#endif