예제 #1
0
파일: note.cpp 프로젝트: xuyan505/QOwnNotes
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;
}
예제 #2
0
파일: note.cpp 프로젝트: guija/QOwnNotes
Note Note::fetchByFileName(QString fileName) {
    Note note;
    note.fillByFileName(fileName);
    return note;
}