Mercurial > trustbridge
comparison ui/certificatetablemodel.h @ 358:9ba7b4b4c1de
Implemented the load from certificate file and set the edit state of certificates.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 10 Apr 2014 17:06:37 +0200 |
parents | e6aa82466420 |
children | 9731d28b95af |
comparison
equal
deleted
inserted
replaced
357:d56f952ba817 | 358:9ba7b4b4c1de |
---|---|
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(const Certificate &certificate); | 20 void addCertificate(const Certificate &certificate, bool editable); |
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 bool setData(const QModelIndex &index, const QVariant &value, | 25 bool setData(const QModelIndex &index, const QVariant &value, |