Note Note::fetchByFileName(QString fileName, int noteSubFolderId) { Note note; // get the active note subfolder id if none was set if (noteSubFolderId == -1) { noteSubFolderId = NoteSubFolder::activeNoteSubFolderId(); } note.fillByFileName(fileName, noteSubFolderId); return note; }
Note Note::fetchByFileName(QString fileName) { Note note; note.fillByFileName(fileName); return note; }