Mercurial > hg > svgui
comparison widgets/PluginReviewDialog.cpp @ 1592:1da52d5e6700
Merge from branch audio-source-refactor. Mostly handling changes to plugin ownership
author | Chris Cannam |
---|---|
date | Fri, 03 Apr 2020 12:12:47 +0100 |
parents | 11660e0c896f |
children |
comparison
equal
deleted
inserted
replaced
1591:26e80a450e74 | 1592:1da52d5e6700 |
---|---|
88 row++; | 88 row++; |
89 } | 89 } |
90 | 90 |
91 for (QString id: dssiIds) { | 91 for (QString id: dssiIds) { |
92 auto descriptor = dssiFactory->getPluginDescriptor(id); | 92 auto descriptor = dssiFactory->getPluginDescriptor(id); |
93 if (!descriptor) continue; | 93 if (descriptor.name == "") continue; |
94 m_table->setItem(row, typeCol, new QTableWidgetItem | 94 m_table->setItem(row, typeCol, new QTableWidgetItem |
95 (tr("DSSI"))); | 95 (tr("DSSI"))); |
96 m_table->setItem(row, idCol, new QTableWidgetItem | 96 m_table->setItem(row, idCol, new QTableWidgetItem |
97 (QString::fromStdString(descriptor->label))); | 97 (QString::fromStdString(descriptor.label))); |
98 m_table->setItem(row, nameCol, new QTableWidgetItem | 98 m_table->setItem(row, nameCol, new QTableWidgetItem |
99 (QString::fromStdString(descriptor->name))); | 99 (QString::fromStdString(descriptor.name))); |
100 QString path = dssiFactory->getPluginLibraryPath(id); | 100 QString path = dssiFactory->getPluginLibraryPath(id); |
101 m_table->setItem(row, libCol, new QTableWidgetItem | 101 m_table->setItem(row, libCol, new QTableWidgetItem |
102 (QFileInfo(path).fileName())); | 102 (QFileInfo(path).fileName())); |
103 m_table->setItem(row, dirCol, new QTableWidgetItem | 103 m_table->setItem(row, dirCol, new QTableWidgetItem |
104 (QFileInfo(path).path())); | 104 (QFileInfo(path).path())); |
105 row++; | 105 row++; |
106 } | 106 } |
107 | 107 |
108 for (QString id: ladspaIds) { | 108 for (QString id: ladspaIds) { |
109 auto descriptor = ladspaFactory->getPluginDescriptor(id); | 109 auto descriptor = ladspaFactory->getPluginDescriptor(id); |
110 if (!descriptor) continue; | 110 if (descriptor.name == "") continue; |
111 m_table->setItem(row, typeCol, new QTableWidgetItem | 111 m_table->setItem(row, typeCol, new QTableWidgetItem |
112 (tr("LADSPA"))); | 112 (tr("LADSPA"))); |
113 m_table->setItem(row, idCol, new QTableWidgetItem | 113 m_table->setItem(row, idCol, new QTableWidgetItem |
114 (QString::fromStdString(descriptor->label))); | 114 (QString::fromStdString(descriptor.label))); |
115 m_table->setItem(row, nameCol, new QTableWidgetItem | 115 m_table->setItem(row, nameCol, new QTableWidgetItem |
116 (QString::fromStdString(descriptor->name))); | 116 (QString::fromStdString(descriptor.name))); |
117 QString path = ladspaFactory->getPluginLibraryPath(id); | 117 QString path = ladspaFactory->getPluginLibraryPath(id); |
118 m_table->setItem(row, libCol, new QTableWidgetItem | 118 m_table->setItem(row, libCol, new QTableWidgetItem |
119 (QFileInfo(path).fileName())); | 119 (QFileInfo(path).fileName())); |
120 m_table->setItem(row, dirCol, new QTableWidgetItem | 120 m_table->setItem(row, dirCol, new QTableWidgetItem |
121 (QFileInfo(path).path())); | 121 (QFileInfo(path).path())); |