| 2200 | } |
| 2201 | |
| 2202 | void EncodingLabel::slotSelectEncoding() |
| 2203 | { |
| 2204 | QAction* pAction = qobject_cast<QAction*>(sender()); |
| 2205 | if(pAction) |
| 2206 | { |
| 2207 | QByteArray codecName = pAction->data().toByteArray(); |
| 2208 | QString s{QLatin1String(codecName)}; |
| 2209 | RecentItems<maxNofRecentCodecs>& recentEncodings = gOptions->m_recentEncodings; |
| 2210 | if(s != "UTF-8" && s != "System") |
| 2211 | { |
| 2212 | recentEncodings.push_front(s); |
| 2213 | } |
| 2214 | |
| 2215 | Q_EMIT encodingChanged(codecName); |
| 2216 | } |
| 2217 | } |
| 2218 | |
| 2219 | #include "difftextwindow.moc" |
nothing calls this directly
no test coverage detected