diff 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
line wrap: on
line diff
--- a/ui/certificatetablemodel.h	Thu Apr 10 14:13:34 2014 +0200
+++ b/ui/certificatetablemodel.h	Thu Apr 10 14:14:56 2014 +0200
@@ -22,8 +22,12 @@
     int columnCount(const QModelIndex &parent = QModelIndex()) const;
 
     QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
+    bool setData(const QModelIndex &index, const QVariant &value,
+        int role = Qt::EditRole);
     QVariant headerData(int section, Qt::Orientation orientation,
-            int role = Qt::DisplayRole) const;
+        int role = Qt::DisplayRole) const;
+
+    Qt::ItemFlags flags(const QModelIndex &index) const;
 
 private:
     QList<Certificate> certificates;

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