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

Method buildMenu

gui/traymenu.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80void TrayMenu::buildMenu(QMenu *actionMenu, QList< QPair <qint32, QString> > records) {
81 for (int i=0; i<records.size(); i++) {
82 QAction *newAction = actionMenu->addAction(records[i].second);
83 signalMapper->setMapping(newAction, records[i].first);
84 connect(newAction, SIGNAL(triggered()), signalMapper, SLOT(map()));
85 actions.append(newAction);
86 }
87
88}
89
90void TrayMenu::noteChosen(int note) {
91 emit (openNote(note));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected