| 381 | |
| 382 | public: |
| 383 | OptionEncodingComboBox(const QString& saveName, QByteArray* inVarCodec, |
| 384 | QWidget* pParent): |
| 385 | QComboBox(pParent), |
| 386 | OptionCodec(saveName) |
| 387 | { |
| 388 | mVarCodec = inVarCodec; |
| 389 | insertCodec(i18n("Unicode, 8 bit"), "UTF-8"); |
| 390 | insertCodec(i18n("Latin1"), "iso 8859-1"); |
| 391 | |
| 392 | QStringList names = Utils::availableCodecs(); |
| 393 | |
| 394 | for(const QString& name: names) |
| 395 | { |
| 396 | insertCodec("", name.toLatin1()); |
| 397 | } |
| 398 | |
| 399 | setToolTip(i18nc("Tool Tip", |
| 400 | "Change this if non-ASCII characters are not displayed correctly.")); |
| 401 | } |
| 402 | |
| 403 | void insertCodec(const QString& visibleCodecName, const QByteArray& name) |
| 404 | { |
nothing calls this directly
no outgoing calls
no test coverage detected