| 104 | } |
| 105 | |
| 106 | QString toString(State state) |
| 107 | { |
| 108 | const QMap<State, QString> names{ |
| 109 | {State::NotAvailable, {}}, |
| 110 | {State::NotInstalled, |
| 111 | QApplication::translate("Updates", "Not installed")}, |
| 112 | {State::UpdateAvailable, |
| 113 | QApplication::translate("Updates", "Update available")}, |
| 114 | {State::Actual, QApplication::translate("Updates", "Up to date")}, |
| 115 | }; |
| 116 | return names.value(state); |
| 117 | } |
| 118 | |
| 119 | QString toString(Action action) |
| 120 | { |
no test coverage detected