| 78 | |
| 79 | |
| 80 | void 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 | |
| 90 | void TrayMenu::noteChosen(int note) { |
| 91 | emit (openNote(note)); |
nothing calls this directly
no outgoing calls
no test coverage detected