comparison 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
comparison
equal deleted inserted replaced
628:3a9c0f38bbad 638:9d806f140bd5
20 20
21 class CertificateItemWidget : public QWidget 21 class CertificateItemWidget : public QWidget
22 { 22 {
23 Q_OBJECT 23 Q_OBJECT
24 public: 24 public:
25 CertificateItemWidget(QWidget *parent = 0, const Certificate &cert = Certificate()); 25 CertificateItemWidget(
26 QWidget *parent = 0,
27 const Certificate &cert = Certificate(),
28 bool state = false,
29 bool edtiable = true);
26 30
27 bool state(); 31 bool state();
32 void setState(bool state);
28 Certificate certificate(); 33 Certificate certificate();
29 34
30 private: 35 private:
31 void setupGUI(); 36 void setupGUI();
32 37
33 Certificate mCertificate; 38 Certificate mCertificate;
39 bool mState;
40 bool mEditable;
34 QLabel *mLabel; 41 QLabel *mLabel;
35 QComboBox *mComboBox; 42 QComboBox *mComboBox;
36 43
37 private slots: 44 private slots:
38 void currentStateChanged(int ndx); 45 void currentStateChanged(int ndx);

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