MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / updatePluginList

Method updatePluginList

ImagePlay/src/SettingsWindow.cpp:82–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void SettingsWindow::updatePluginList()
83{
84 ui->listWidget->clear();
85
86 std::vector<IPLProcessDriver*>* drivers = _mainWindow->pluginManager()->loadedDrivers();
87
88 if (drivers->size() > 0)
89 {
90 for (int i = 0; i < drivers->size(); i++)
91 {
92 IPLProcessDriver* driver = drivers->at(i);
93 QString pluginInfo("%1\tVersion: %2\tAuthor : %3");
94 ui->listWidget->addItem(pluginInfo.arg(QString::fromStdString(driver->className()))
95 .arg(driver->version())
96 .arg(QString::fromStdString(driver->author())));
97 }
98 }
99 else
100 ui->listWidget->addItem("No plugins loaded");
101}
102
103void SettingsWindow::on_btnUnloadPlugins_clicked()
104{

Callers

nothing calls this directly

Calls 6

loadedDriversMethod · 0.80
pluginManagerMethod · 0.80
versionMethod · 0.80
clearMethod · 0.45
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected