208
208
return m_resources.value(hash);
216
void Note::addResource(const QString &hash, const QString &fileName, const QString &type, const QImage &image)
213
218
image.save(QStandardPaths::standardLocations(QStandardPaths::CacheLocation).first() + "/" + hash + "." + type.split('/').last());
215
222
m_resourceTypes.insert(hash, type);
218
226
void Note::markTodo(const QString &todoId, bool checked)