* Get translated string representation. * @return code description. */
| 101 | * @return code description. |
| 102 | */ |
| 103 | QString EventTimeCode::toTranslatedString() const |
| 104 | { |
| 105 | for (int i = 0; i < numCodes; ++i) { |
| 106 | if (codes[i].code == m_code) { |
| 107 | return QCoreApplication::translate("@default", codes[i].text); |
| 108 | } |
| 109 | } |
| 110 | const char* const reservedForFutureUseStr = |
| 111 | QT_TRANSLATE_NOOP("@default", "reserved for future use %1"); |
| 112 | return QCoreApplication::translate("@default", reservedForFutureUseStr) |
| 113 | .arg(m_code, 2, 16, QLatin1Char('0')); |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Get index of code in list of strings. |