comparison ui/certificatelistwidget.cpp @ 1106:6f7b7d88f048

(issue115) Rework CertificateListWidgets to have a ToolButton instead of a combobox
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 15 Sep 2014 17:43:56 +0200
parents 2b3526ef2d69
children 9bb9932bb819
comparison
equal deleted inserted replaced
1105:0c60ec9c2461 1106:6f7b7d88f048
23 } 23 }
24 24
25 void CertificateListWidget::addCertificate( 25 void CertificateListWidget::addCertificate(
26 const Certificate &certificate, 26 const Certificate &certificate,
27 bool state, 27 bool state,
28 bool editable, 28 QToolButton *button)
29 const QString &installLabel,
30 const QString &removeLabel)
31 { 29 {
32 CertificateItemWidget *widget = 30 CertificateItemWidget *widget =
33 new CertificateItemWidget(this, certificate, state, editable, 31 new CertificateItemWidget(this, certificate, state, button);
34 installLabel, removeLabel);
35 connect(widget, SIGNAL(stateChanged(bool, const Certificate&)), 32 connect(widget, SIGNAL(stateChanged(bool, const Certificate&)),
36 this, SLOT(certStateChanged(bool, const Certificate&))); 33 this, SLOT(certStateChanged(bool, const Certificate&)));
37 34
38 mCertificateWidgets << widget; 35 mCertificateWidgets << widget;
39 mLayout.addWidget(widget); 36 mLayout.addWidget(widget);

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