OpenCores
URL https://opencores.org/ocsvn/ezidebug/ezidebug/trunk

Subversion Repositories ezidebug

[/] [ezidebug/] [trunk/] [EziDebug_src/] [ezidebugtreemodel.h] - Rev 2

Compare with Previous | Blame | View Log

#ifndef EZIDEBUGTREEMODEL_H
#define EZIDEBUGTREEMODEL_H
#include <QIcon>
#include <QAbstractItemModel>
class EziDebugInstanceTreeItem ;
 
class EziDebugTreeModel:public QAbstractItemModel
{
    //Q_OBJECT
public:
    EziDebugTreeModel(EziDebugInstanceTreeItem* item, QObject *parent);
    ~EziDebugTreeModel();
 
    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;
 
    EziDebugInstanceTreeItem* getInstanceTreeRootItem(void) ;
    void  setInstanceTreeRootItem(EziDebugInstanceTreeItem* item);
 
private:
   EziDebugInstanceTreeItem* m_pheadItem ;
   EziDebugInstanceTreeItem* m_pinstanceTopItem ;
};
 
#endif // EZIDEBUGTREEMODEL_H
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.