| 1270 | } |
| 1271 | |
| 1272 | bool |
| 1273 | Singleton::registerInspectionWidgetFactory(SigDigger::InspectionWidgetFactory *factory) |
| 1274 | { |
| 1275 | // Not a bug. The plugin went ahead of ourselves. |
| 1276 | if (this->inspectionWidgetFactories.contains(factory)) |
| 1277 | return true; |
| 1278 | |
| 1279 | this->inspectionWidgetFactories.push_back(factory); |
| 1280 | this->inspectionWidgetFactoryTable[factory->name()] = factory; |
| 1281 | |
| 1282 | return true; |
| 1283 | } |
| 1284 | |
| 1285 | bool |
| 1286 | Singleton::unregisterInspectionWidgetFactory(SigDigger::InspectionWidgetFactory *factory) |