decaf-emu/tools/pm4-replay-qt/replaycommandsmodel.h
James Benton 34901fb792 tools: Add pm4-replay-qt.
Basic skeleton app now, let's see if we can iterate on this until we have
something useful?
2017-05-02 22:28:20 +01:00

17 lines
494 B
C++

#pragma once
#include <QAbstractTableModel>
#include "replay.h"
class ReplayCommandModel : public QAbstractTableModel
{
Q_OBJECT
public:
ReplayCommandModel(std::shared_ptr<ReplayFile> replay, QObject *parent = nullptr);
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
private:
std::shared_ptr<ReplayFile> mReplay;
};