* @brief Emits a companion "resolved" Info event; leaves history intact. */
| 198 | * @brief Emits a companion "resolved" Info event; leaves history intact. |
| 199 | */ |
| 200 | void DataModel::NotificationCenter::resolve(const QString& channel, |
| 201 | const QString& title, |
| 202 | const QString& subtitle) |
| 203 | { |
| 204 | const QString resolvedTitle = title.trimmed().isEmpty() |
| 205 | ? QStringLiteral("Resolved") |
| 206 | : QStringLiteral("Resolved: %1").arg(title.trimmed()); |
| 207 | post(Info, channel, resolvedTitle, subtitle); |
| 208 | } |
| 209 | |
| 210 | //-------------------------------------------------------------------------------------------------- |
| 211 | // History accessors |