-
Notifications
You must be signed in to change notification settings - Fork 0
/
magazinmodel.h
39 lines (33 loc) · 1.25 KB
/
magazinmodel.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
#ifndef MAGAZINMODEL_H
#define MAGAZINMODEL_H
#include <QAbstractTableModel>
#include <QBrush>
#include <QColor>
#include <QFont>
#include <QVariant>
class MagazinModel : public QAbstractTableModel
{
Q_OBJECT
public:
explicit MagazinModel(QObject *parent = nullptr);
void populateData(const QList<QString> &contactName,
const QList<QString> &contactPhone,
const QList<QString> &tgl,
const QList<QString> &tal,
const QList<QString> &tfl,
const QList<QString> &status,
const QList<QString> &tsl);
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
private:
QList<QString> list_ID;
QList<QString> list_Description;
QList<QString> list_TGL;
QList<QString> list_TAL;
QList<QString> list_TFL;
QList<QString> list_TSL;
QList<QString> list_Status;
};
#endif // MAGAZINMODEL_H