| 134 | } |
| 135 | |
| 136 | QString actionTypeToQString(const UINT8 action) |
| 137 | { |
| 138 | switch (action) { |
| 139 | case Actions::NoAction: |
| 140 | return ""; |
| 141 | case Actions::Create: |
| 142 | return QObject::tr("Create"); |
| 143 | case Actions::Insert: |
| 144 | return QObject::tr("Insert"); |
| 145 | case Actions::Replace: |
| 146 | return QObject::tr("Replace"); |
| 147 | case Actions::Remove: |
| 148 | return QObject::tr("Remove"); |
| 149 | case Actions::Rebuild: |
| 150 | return QObject::tr("Rebuild"); |
| 151 | case Actions::Rebase: |
| 152 | return QObject::tr("Rebase"); |
| 153 | case Actions::DoNotRebuild: |
| 154 | return QObject::tr("Do not rebuild"); |
| 155 | default: |
| 156 | return QObject::tr("Unknown"); |
| 157 | } |
| 158 | } |