| 274 | }; |
| 275 | |
| 276 | LoadedPluginsDialog::LoadedPluginsDialog( QWidget* parent ) |
| 277 | : QDialog( parent ) |
| 278 | { |
| 279 | setWindowTitle(i18nc("@title:window", "Loaded Plugins")); |
| 280 | |
| 281 | auto* vbox = new QVBoxLayout(this); |
| 282 | |
| 283 | auto* title = new KTitleWidget(this); |
| 284 | title->setIcon(qApp->windowIcon(), KTitleWidget::ImageLeft); |
| 285 | title->setText(i18n("<html><font size=\"4\">Plugins loaded for <b>%1</b></font></html>", |
| 286 | KAboutData::applicationData().displayName())); |
| 287 | vbox->addWidget(title); |
| 288 | vbox->addWidget(new PluginsView()); |
| 289 | |
| 290 | auto* buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); |
| 291 | connect(buttonBox, &QDialogButtonBox::accepted, this, &LoadedPluginsDialog::accept); |
| 292 | connect(buttonBox, &QDialogButtonBox::rejected, this, &LoadedPluginsDialog::reject); |
| 293 | buttonBox->button(QDialogButtonBox::Close)->setDefault(true); |
| 294 | vbox->addWidget(buttonBox); |
| 295 | |
| 296 | resize(800, 600); |
| 297 | } |
| 298 | |
| 299 | #include "moc_loadedpluginsdialog.cpp" |
| 300 | #include "loadedpluginsdialog.moc" |
nothing calls this directly
no test coverage detected