pans
2016-12-15 87e3ee273b2f84081ac45926be9d8e5be3166eaa
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
/***************************************************************************************
 *      Copyright 2009-2011 Hikvision Digital Technology Co., Ltd.
 *      FileName        :   treemodel.h
 *      Description     :   Ê÷ÐÎÏÔʾģʽ£¬ÓëtreeviewÅäºÏʹÓÃ
 *      Modification    :   ÎÞ  
 *      Version         :   V1.0.0
 *      Time            :   2009-10,11
 *      Author          :   wanggp@hikvision.com
 **************************************************************************************/
 
#ifndef TREEMODEL_H_
#define TREEMODEL_H_
 
#include <QAbstractItemModel>
#include <QModelIndex>
#include <QVariant>
#include <QString>
#include <QObject>
#include <QStringList>
#include <QStandardItemModel>
 
 
 
class TreeItem;
 
class TreeModel : public QStandardItemModel
{
    Q_OBJECT
        
public:
    
    void setupModelData(const QStringList &lines, TreeItem *parent);
    TreeModel(const QString &data, QObject *parent = 0);
    ~TreeModel();
 
private:
  
    TreeItem *rootItem;
};
 
#endif /* TREEMODEL_H_ */