Mercurial > trustbridge
comparison ui/certificatelistwidget.cpp @ 699:f12b102b33ca
Merged
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Tue, 01 Jul 2014 17:22:31 +0200 |
parents | 0f4c480c41f4 |
children | 3d669400104a |
comparison
equal
deleted
inserted
replaced
698:b55d49150e36 | 699:f12b102b33ca |
---|---|
83 installLabel, removeLabel); | 83 installLabel, removeLabel); |
84 connect(widget, SIGNAL(stateChanged(bool, const Certificate&)), | 84 connect(widget, SIGNAL(stateChanged(bool, const Certificate&)), |
85 this, SLOT(certStateChanged(bool, const Certificate&))); | 85 this, SLOT(certStateChanged(bool, const Certificate&))); |
86 item->setSizeHint(widget->minimumSizeHint()); | 86 item->setSizeHint(widget->minimumSizeHint()); |
87 mCertificateList->setItemWidget(item, widget); | 87 mCertificateList->setItemWidget(item, widget); |
88 emit certListChanged(-1); | |
88 } | 89 } |
89 | 90 |
90 void CertificateListWidget::addCertificates(const QList<Certificate> &list) | 91 void CertificateListWidget::addCertificates(const QList<Certificate> &list) |
91 { | 92 { |
92 | 93 |
101 if (itemWidget->certificate() == cert) { | 102 if (itemWidget->certificate() == cert) { |
102 QListWidgetItem* item = mCertificateList->takeItem(i); | 103 QListWidgetItem* item = mCertificateList->takeItem(i); |
103 delete(item); | 104 delete(item); |
104 } | 105 } |
105 } | 106 } |
107 emit certListChanged(-1); | |
106 } | 108 } |
107 | 109 |
108 void CertificateListWidget::clear() | 110 void CertificateListWidget::clear() |
109 { | 111 { |
110 mCertificateList->clear(); | 112 mCertificateList->clear(); |