MCPcopy Create free account
hub / github.com/cxasm/notepad-- / writeUserSettings

Method writeUserSettings

src/userlexdef.cpp:85–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85bool UserLexDef::writeUserSettings(QString langTagName)
86{
87 //�Զ������Ը�ʽ��
88 //mz:ndd
89 //name:xxx
90 //mother:xxx none/cpp/html ������
91 //ext:xx xx xx �ļ�������׺��
92 //keyword:xxx
93
94 QString userLangFile = QString("notepad/userlang/%1").arg(langTagName);
95 QSettings qs(QSettings::IniFormat, QSettings::UserScope, userLangFile);
96 qs.setIniCodec("UTF-8");
97 qs.clear();
98
99 qs.setValue("mz", langTagName);
100 qs.setValue("mother", m_motherLang);
101 qs.setValue("ext", m_extTypes);
102 qs.setValue("keyword", m_keyword.data());
103
104 return true;
105}
106
107const char * UserLexDef::keywords(int set) const
108{

Callers 1

slot_saveMethod · 0.80

Calls 2

dataMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected