Helper for the output of a time duration field. Inputs are UNIX epoch times. */
| 176 | |
| 177 | /** Helper for the output of a time duration field. Inputs are UNIX epoch times. */ |
| 178 | QString TimeDurationField(std::chrono::seconds time_now, std::chrono::seconds time_at_event) const |
| 179 | { |
| 180 | return time_at_event.count() ? GUIUtil::formatDurationStr(time_now - time_at_event) : tr("Never"); |
| 181 | } |
| 182 | |
| 183 | private Q_SLOTS: |
| 184 | void updateAlerts(const QString& warnings); |
no test coverage detected