comparison ui/certificatetablemodel.h @ 348:e6aa82466420

Use the table item delegate for certificates and make the model editable.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 10 Apr 2014 14:14:56 +0200
parents fba80767fd7a
children 9ba7b4b4c1de
comparison
equal deleted inserted replaced
347:dde533ba4fcc 348:e6aa82466420
20 void addCertificate(const 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 bool setData(const QModelIndex &index, const QVariant &value,
26 int role = Qt::EditRole);
25 QVariant headerData(int section, Qt::Orientation orientation, 27 QVariant headerData(int section, Qt::Orientation orientation,
26 int role = Qt::DisplayRole) const; 28 int role = Qt::DisplayRole) const;
29
30 Qt::ItemFlags flags(const QModelIndex &index) const;
27 31
28 private: 32 private:
29 QList<Certificate> certificates; 33 QList<Certificate> certificates;
30 QList<QString> header; 34 QList<QString> header;
31 }; 35 };

http://wald.intevation.org/projects/trustbridge/