diff ui/certificateitemwidget.h @ 638:9d806f140bd5 trustbridge-refactor

Added state and editable flag to certificate list items.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 24 Jun 2014 16:59:52 +0200
parents 566ee111e331
children 973a7ce19658
line wrap: on
line diff
--- a/ui/certificateitemwidget.h	Mon Jun 23 12:49:09 2014 +0200
+++ b/ui/certificateitemwidget.h	Tue Jun 24 16:59:52 2014 +0200
@@ -22,15 +22,22 @@
 {
 Q_OBJECT
 public:
-    CertificateItemWidget(QWidget *parent = 0, const Certificate &cert = Certificate());
+    CertificateItemWidget(
+        QWidget *parent = 0,
+        const Certificate &cert = Certificate(),
+        bool state = false,
+        bool edtiable = true);
 
     bool state();
+    void setState(bool state);
     Certificate certificate();
 
 private:
     void setupGUI();
 
     Certificate mCertificate;
+    bool mState;
+    bool mEditable;
     QLabel *mLabel;
     QComboBox *mComboBox;
 

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