| 16 | }; |
| 17 | |
| 18 | XcaDialog::XcaDialog(QWidget *parent, enum pki_type type, QWidget *w, |
| 19 | const QString &t, const QString &desc, |
| 20 | const QString &help_ctx) |
| 21 | : QDialog(parent ? parent : mainwin) |
| 22 | { |
| 23 | setupUi(this); |
| 24 | setWindowTitle(XCA_TITLE); |
| 25 | image->setPixmap(QPixmap(PixmapMap[type])); |
| 26 | content->addWidget(w); |
| 27 | mainwin->helpdlg->register_ctxhelp_button(this, help_ctx); |
| 28 | |
| 29 | widg = w; |
| 30 | title->setText(t); |
| 31 | if (desc.isEmpty()) { |
| 32 | verticalLayout->removeWidget(description); |
| 33 | delete description; |
| 34 | } else { |
| 35 | description->setText(desc); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | void XcaDialog::noSpacer() |
| 40 | { |
nothing calls this directly
no test coverage detected