MCPcopy Create free account
hub / github.com/KDE/kdiff3 / OptionEncodingComboBox

Method OptionEncodingComboBox

src/optiondialog.cpp:383–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected