Mercurial > trustbridge
diff ui/certificatelistwidget.cpp @ 687:973a7ce19658
(issue24) Let the string for install / remove be set for each item individually
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 01 Jul 2014 12:49:19 +0200 |
parents | 320a64d58e62 |
children | 0f4c480c41f4 |
line wrap: on
line diff
--- a/ui/certificatelistwidget.cpp Tue Jul 01 12:14:10 2014 +0200 +++ b/ui/certificatelistwidget.cpp Tue Jul 01 12:49:19 2014 +0200 @@ -70,14 +70,17 @@ void CertificateListWidget::addCertificate( const Certificate &certificate, bool state, - bool editable) + bool editable, + const QString &installLabel, + const QString &removeLabel) { QListWidgetItem* item = new QListWidgetItem(mCertificateList); item->setData(Qt::UserRole, QVariant::fromValue(certificate)); mCertificateList->addItem(item); CertificateItemWidget *widget = - new CertificateItemWidget(mCertificateList, certificate, state, editable); + new CertificateItemWidget(mCertificateList, certificate, state, editable, + installLabel, removeLabel); connect(widget, SIGNAL(stateChanged(bool, const Certificate&)), this, SLOT(certStateChanged(bool, const Certificate&))); item->setSizeHint(widget->minimumSizeHint());