MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / loadSettings

Method loadSettings

src/MacroManager.cpp:81–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void MacroManager::loadSettings()
82{
83 qInfo(Q_FUNC_INFO);
84
85 ApplicationSettings settings;
86
87 int size = settings.beginReadArray("Macros");
88 for (int i = 0; i < size; ++i) {
89 settings.setArrayIndex(i);
90
91 if (settings.value("Macro").canConvert<Macro>()) {
92 Macro *m = new Macro(settings.value("Macro").value<Macro>());
93 macros.append(m);
94 }
95 else {
96 qWarning("MacroManager: Skipping invalid Macro");
97 }
98 }
99 settings.endArray();
100}
101
102void MacroManager::saveSettings() const
103{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected