class ApiTraceModel : public QAbstractItemModel
{
Q_OBJECT
+public:
+ enum Roles {
+ EventRole = Qt::UserRole + 1
+ };
public:
ApiTraceModel(QObject *parent = 0);
~ApiTraceModel();
void setApiTrace(ApiTrace *trace);
const ApiTrace *apiTrace() const;
+ void stateSetOnEvent(ApiTraceEvent *event);
+
+ QModelIndex callIndex(int callNum) const;
+ QModelIndex indexForCall(ApiTraceCall *call) const;
public:
/* QAbstractItemModel { */
private slots:
void invalidateFrames();
- void appendFrames(int oldCount, int numAdded);
+ void beginAddingFrames(int oldCount, int numAdded);
+ void endAddingFrames();
+ void callChanged(ApiTraceCall *call);
private:
ApiTraceEvent *item(const QModelIndex &index) const;