| 87 | |
| 88 | |
| 89 | PluginDescList::PluginDescList(QWidget *parent) : |
| 90 | QWidget(parent) |
| 91 | { |
| 92 | QVBoxLayout* layout = new QVBoxLayout(this); |
| 93 | |
| 94 | QList<Plugin::Descriptor*> descs = pluginFactory->descriptors(Plugin::Instrument); |
| 95 | std::sort(descs.begin(), descs.end(), pluginBefore); |
| 96 | for (const Plugin::Descriptor* desc : descs) |
| 97 | { |
| 98 | PluginDescWidget* p = new PluginDescWidget( *desc, this ); |
| 99 | p->show(); |
| 100 | layout->addWidget(p); |
| 101 | } |
| 102 | |
| 103 | setLayout(layout); |
| 104 | layout->addStretch(); |
| 105 | } |
| 106 | |
| 107 | |
| 108 |
nothing calls this directly
no test coverage detected