| 436 | if (!m_externalExportActions) { |
| 437 | std::unique_ptr<QLibrary> lib; |
| 438 | foreach (const auto &path, Paths::pluginPaths(GAMMARAY_PROBE_ABI)) { |
| 439 | const QString baseName = path + QLatin1String("/libgammaray_widget_export_actions"); |
| 440 | lib.reset(new QLibrary); |
| 441 | lib->setFileName(baseName + QLatin1Char('-') + QStringLiteral(GAMMARAY_PROBE_ABI)); |
| 442 | if (lib->load()) { |
| 443 | m_externalExportActions = std::move(lib); |
| 444 | break; |
| 445 | } |
| 446 | lib.reset(new QLibrary); |
| 447 | lib->setFileName(baseName + QLatin1String(GAMMARAY_DEBUG_POSTFIX)); |
| 448 | if (lib->load()) { |
| 449 | m_externalExportActions = std::move(lib); |
| 450 | break; |
| 451 | } |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | if (m_externalExportActions) { |
no test coverage detected