qt5/6: 完成对构建 QSci 的 Qt6 转化处理

This commit is contained in:
zinface 2023-02-28 00:36:12 +08:00
parent 1e8c4bce1d
commit 72c7a78d24
1 changed files with 2 additions and 0 deletions

View File

@ -907,7 +907,9 @@ const char* QsciLexer::getUserDefineKeywords()
QString userLangFile = QString("notepad/userlang/%1").arg(m_tagName);//自定义语言中不能有.字符,否则可能有错,后续要检查
QSettings qs(QSettings::IniFormat, QSettings::UserScope, userLangFile);
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
qs.setIniCodec("UTF-8");
#endif
if (!qs.contains("mz"))
{