1 #ifndef CSM_TOOLS_REPORTMODEL_H
2 #define CSM_TOOLS_REPORTMODEL_H
7 #include <QAbstractTableModel>
9 #include "../doc/messages.hpp"
11 #include "../world/universalid.hpp"
19 std::vector<CSMDoc::Message>
mRows;
34 ReportModel (
bool fieldColumn =
false,
bool severityColumn =
true);
36 virtual int rowCount (
const QModelIndex & parent = QModelIndex())
const;
38 virtual int columnCount (
const QModelIndex & parent = QModelIndex())
const;
40 virtual QVariant
data (
const QModelIndex & index,
int role = Qt::DisplayRole)
const;
42 virtual QVariant
headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
44 virtual bool removeRows (
int row,
int count,
const QModelIndex& parent = QModelIndex());
52 std::string
getHint (
int row)
const;
void message(CodeContainer &code, Literals &literals, const std::string &message, int buttons)
Definition: generator.cpp:537
Definition: messages.hpp:13
Definition: universalid.hpp:12