Mercurial > trustbridge
comparison ui/certificatetablemodel.h @ 342:fba80767fd7a
Fixed member variables in certificate table model.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 10 Apr 2014 10:05:32 +0200 |
parents | 36be67070dcb |
children | e6aa82466420 |
comparison
equal
deleted
inserted
replaced
341:36c68dfb821d | 342:fba80767fd7a |
---|---|
15 Q_OBJECT | 15 Q_OBJECT |
16 | 16 |
17 public: | 17 public: |
18 CertificateTabelModel(QObject *parent = 0); | 18 CertificateTabelModel(QObject *parent = 0); |
19 | 19 |
20 void addCertificate(Certificate *certificate); | 20 void addCertificate(const Certificate &certificate); |
21 int rowCount(const QModelIndex &parent = QModelIndex()) const; | 21 int rowCount(const QModelIndex &parent = QModelIndex()) const; |
22 int columnCount(const QModelIndex &parent = QModelIndex()) const; | 22 int columnCount(const QModelIndex &parent = QModelIndex()) const; |
23 | 23 |
24 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; | 24 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; |
25 QVariant headerData(int section, Qt::Orientation orientation, | 25 QVariant headerData(int section, Qt::Orientation orientation, |
26 int role = Qt::DisplayRole) const; | 26 int role = Qt::DisplayRole) const; |
27 | 27 |
28 private: | 28 private: |
29 QList<Certificate> *certificates; | 29 QList<Certificate> certificates; |
30 QList<QString> *header; | 30 QList<QString> header; |
31 }; | 31 }; |
32 | 32 |
33 #endif | 33 #endif |