| 69 | } |
| 70 | |
| 71 | QString MicroDVDSubtitleFormat::encodeToken(const SubToken &entry) const { |
| 72 | switch (entry.type) { |
| 73 | case STT_WS: |
| 74 | return " "; |
| 75 | case STT_WORD: |
| 76 | return entry.payload; |
| 77 | case STT_NEWLINE: |
| 78 | return "|"; |
| 79 | case STT_BOLD: |
| 80 | return "{y:b}"; |
| 81 | case STT_ITALIC: |
| 82 | return "{y:i}"; |
| 83 | case STT_UNDERLINE: |
| 84 | return "{y:u}"; |
| 85 | case STT_FONTCOLOR: |
| 86 | return QString("{c:$%1}").arg(entry.payload); |
| 87 | default: |
| 88 | return ""; |
| 89 | } |
| 90 | } |
nothing calls this directly
no outgoing calls
no test coverage detected