MCPcopy Create free account
hub / github.com/KDE/kdevelop / LoadedPluginsDialog

Method LoadedPluginsDialog

kdevplatform/shell/loadedpluginsdialog.cpp:276–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274};
275
276LoadedPluginsDialog::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"

Callers

nothing calls this directly

Calls 5

setIconMethod · 0.80
displayNameMethod · 0.80
buttonMethod · 0.80
setTextMethod · 0.45
addWidgetMethod · 0.45

Tested by

no test coverage detected