MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / sendDateUpdateSignal

Method sendDateUpdateSignal

gui/nbrowserwindow.cpp:3460–3469  ·  view source on GitHub ↗

Send a signal that the note has been updated

Source from the content-addressed store, hash-verified

3458
3459// Send a signal that the note has been updated
3460void NBrowserWindow::sendDateUpdateSignal(qint64 dt) {
3461 NoteTable ntable(global.db);
3462 ntable.setDirty(this->lid, true);
3463 if (dt == 0) {
3464 dt = QDateTime::currentMSecsSinceEpoch();
3465 this->dateEditor.setUpdateDate(dt);
3466 }
3467 emit(this->noteUpdated(lid));
3468 emit(this->updateNoteList(lid, NOTE_TABLE_DATE_UPDATED_POSITION, dt));
3469}
3470
3471
3472

Callers 1

contentChangedMethod · 0.95

Calls 3

setUpdateDateMethod · 0.80
updateNoteListMethod · 0.80
setDirtyMethod · 0.45

Tested by

no test coverage detected