MCPcopy Create free account
hub / github.com/Atarity/Lightpack / pluginSwitch

Method pluginSwitch

Software/src/SettingsWindow.cpp:1792–1812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1790}
1791
1792void SettingsWindow::pluginSwitch(int index)
1793{
1794 DEBUG_LOW_LEVEL << Q_FUNC_INFO << index;
1795
1796 if (index == -1)
1797 {
1798 ui->label_PluginName->setText("");
1799 ui->label_PluginAuthor->setText("");
1800 ui->label_PluginVersion->setText("");
1801 ui->tb_PluginDescription->setText("");
1802 ui->label_PluginIcon->setPixmap(QIcon(":/plugin/Plugin.png").pixmap(50,50));
1803 return;
1804 }
1805
1806 ui->label_PluginName->setText(_plugins[index]->Name());
1807 ui->label_PluginAuthor->setText(_plugins[index]->Author());
1808 ui->label_PluginVersion->setText(_plugins[index]->Version());
1809 ui->tb_PluginDescription->setText(_plugins[index]->Description());
1810 ui->label_PluginIcon->setPixmap(_plugins[index]->Icon().pixmap(50,50));
1811
1812}
1813
1814void SettingsWindow::on_pushButton_ReloadPlugins_clicked()
1815{

Callers

nothing calls this directly

Calls 5

NameMethod · 0.80
AuthorMethod · 0.80
DescriptionMethod · 0.80
IconMethod · 0.80
VersionMethod · 0.45

Tested by

no test coverage detected