comparison ui/certificatelistwidget.cpp @ 695:0f4c480c41f4

Emit list changed when certificates are added or removed
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 01 Jul 2014 17:19:02 +0200
parents 973a7ce19658
children 3d669400104a
comparison
equal deleted inserted replaced
694:25a73bfec359 695:0f4c480c41f4
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();

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