|
|
from kaffeine-cvs 2005-02-16 kaffeine/pref.cpp Line 118 - 131
addind 是什么意思? 为什么只有 Western, European & Middle-Eastern >__<
对于编码的标准我是在是不了解,哪位给讲讲,为什么?
:beat :beat :beat
- //*** addind Western, European & Middle-Eastern Codecs to the combo box ***//
- QTextCodec *codec;
- QString codecName;
- QStringList codecNames;
- for (int i = 0; (codec = QTextCodec::codecForIndex(i)); i++) {
- codecName = codec->name();
- if ((codecName.left(2) == "CP") || (codecName.left(4) == "ISO ") ||
- (codecName.left(3) == "IBM") || (codecName.left(3) == "KOI"))
- {
- codecNames.append(codecName);
- }
- }
- codecNames.sort();
- m_alternateEncoding->insertStringList(codecNames);
- grid->addWidget(m_alternateEncoding, 1, 0);
复制代码 |
|