void ConfigurationManager::initPluginWidgets(ItemFactory *itemFactory) { ui->itemOrderListPlugins->clearItems(); for ( const auto &loader : itemFactory->loaders() ) { ItemOrderList::ItemPtr pluginItem(new PluginItem(loader)); const QIcon icon = getIcon(loader->icon()); ui->itemOrderListPlugins->appendItem( loader->name(), itemFactory->isLoaderEnabled(loader), icon, pluginItem ); } }
void InputOutputPatchEditor::slotPluginConfigurationChanged(const QString& pluginName) { QTreeWidgetItem* item = pluginItem(pluginName); if (item == NULL) return; /* Disable check state tracking while the item is being filled */ disconnect(m_mapTree, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this, SLOT(slotMapItemChanged(QTreeWidgetItem*, int))); /* Update the IO map */ slotMapCurrentItemChanged(item); /* Enable check state tracking after the item has been filled */ connect(m_mapTree, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this, SLOT(slotMapItemChanged(QTreeWidgetItem*, int))); }