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

Method copyNoteUrl

gui/nbrowserwindow.cpp:3738–3751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3736
3737
3738void NBrowserWindow::copyNoteUrl() {
3739 Note n;
3740 NoteTable ntable(global.db);
3741 ntable.get(n,this->lid,false,false);
3742 UserTable utable(global.db);
3743 User user;
3744 utable.getUser(user);
3745
3746 QString href = "evernote:///view/" + QString::number(user.id) + QString("/") +
3747 user.shardId +QString("/") +
3748 n.guid +QString("/") +
3749 n.guid + QString("/");
3750 QApplication::clipboard()->setText(href, QClipboard::Clipboard);
3751}
3752
3753
3754

Callers

nothing calls this directly

Calls 4

QStringClass · 0.50
getMethod · 0.45
getUserMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected