-
Notifications
You must be signed in to change notification settings - Fork 0
/
p7d_model.h
51 lines (39 loc) · 1.06 KB
/
p7d_model.h
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
43
44
45
46
47
48
49
50
51
#ifndef P7_DUMP_MODEL
#define P7_DUMP_MODEL
#include "importer.h"
#include <QAbstractTableModel>
#include <QString>
namespace p7 {
class P7DumpModel : public QAbstractTableModel
{
public:
enum class Columns {
Number = 0,
ID,
Level,
Module,
CPUNumber,
Thread,
File,
Line,
Function,
Time,
Text,
Count
};
void setDumpData(const p7DumpData & data);
QString hostName() const;
QString processName() const;
QString processDateTimeAsString() const;
Qt::ItemFlags flags(const QModelIndex &index) const override;
QVariant data(const QModelIndex &index, int role) const override;
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
int columnWidth(int columnIndex) const;
private:
p7DumpData _data;
};
}
#endif