MCPcopy Create free account
hub / github.com/KDE/kid3 / toTranslatedString

Method toTranslatedString

src/core/model/eventtimingcode.cpp:103–114  ·  view source on GitHub ↗

* Get translated string representation. * @return code description. */

Source from the content-addressed store, hash-verified

101 * @return code description.
102 */
103QString 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.

Callers 1

getStringForEnumMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected