mirror of https://gitee.com/cxasm/notepad--.git
qt5/6: 完成对构建 QSci 的 Qt6 转化处理
This commit is contained in:
parent
1e8c4bce1d
commit
72c7a78d24
|
@ -907,7 +907,9 @@ const char* QsciLexer::getUserDefineKeywords()
|
||||||
|
|
||||||
QString userLangFile = QString("notepad/userlang/%1").arg(m_tagName);//自定义语言中不能有.字符,否则可能有错,后续要检查
|
QString userLangFile = QString("notepad/userlang/%1").arg(m_tagName);//自定义语言中不能有.字符,否则可能有错,后续要检查
|
||||||
QSettings qs(QSettings::IniFormat, QSettings::UserScope, userLangFile);
|
QSettings qs(QSettings::IniFormat, QSettings::UserScope, userLangFile);
|
||||||
|
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||||
qs.setIniCodec("UTF-8");
|
qs.setIniCodec("UTF-8");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!qs.contains("mz"))
|
if (!qs.contains("mz"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue