Mercurial > trustbridge
comparison ui/certificatetablemodel.h @ 396:26651cc0cc47
Remove all certificates if a new list is loaded from file.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 15 Apr 2014 16:45:37 +0200 |
parents | 9731d28b95af |
children | 17e1c8f37d72 |
comparison
equal
deleted
inserted
replaced
395:a63601810211 | 396:26651cc0cc47 |
---|---|
17 public: | 17 public: |
18 CertificateTabelModel(QObject *parent = 0); | 18 CertificateTabelModel(QObject *parent = 0); |
19 | 19 |
20 void addCertificate(const Certificate &certificate, bool editable); | 20 void addCertificate(const Certificate &certificate, bool editable); |
21 bool removeRows(int row, int count, const QModelIndex&); | 21 bool removeRows(int row, int count, const QModelIndex&); |
22 bool removeAll(); | |
22 int rowCount(const QModelIndex &parent = QModelIndex()) const; | 23 int rowCount(const QModelIndex &parent = QModelIndex()) const; |
23 int columnCount(const QModelIndex &parent = QModelIndex()) const; | 24 int columnCount(const QModelIndex &parent = QModelIndex()) const; |
24 | 25 |
25 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; | 26 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; |
26 bool setData(const QModelIndex &index, const QVariant &value, | 27 bool setData(const QModelIndex &index, const QVariant &value, |