src/headerhistorymodel.h

changeset 1291
9c570a30c98a
child 1292
66d2050d3bd9
equal deleted inserted replaced
1290:8db26042f3d1 1291:9c570a30c98a
1 #pragma once
2 #include <QAbstractTableModel>
3
4 class LDHeader;
5
6 class HeaderHistoryModel : public QAbstractTableModel
7 {
8 public:
9 enum Column
10 {
11 DateColumn,
12 AuthorColumn,
13 DescriptionColumn,
14 };
15
16 HeaderHistoryModel(LDHeader* header, QObject* parent);
17
18 int rowCount(const QModelIndex &parent = QModelIndex()) const override;
19 int columnCount(const QModelIndex &parent = QModelIndex()) const override;
20 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
21 void setHeader(LDHeader* header);
22 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
23
24 private:
25 LDHeader* header;
26 };

mercurial