* @brief Reads the manifest for one kind into a QJsonArray of entries. */
| 99 | * @brief Reads the manifest for one kind into a QJsonArray of entries. |
| 100 | */ |
| 101 | static QJsonArray loadManifest(const detail::Kind& kind) |
| 102 | { |
| 103 | QFile f(kind.manifest); |
| 104 | if (!f.open(QIODevice::ReadOnly | QIODevice::Text)) |
| 105 | return {}; |
| 106 | |
| 107 | return QJsonDocument::fromJson(f.readAll()).array(); |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * @brief Returns a brief catalog row for one manifest entry. |