QAction synchronizeAction = addContextAction("synchronize", tr("Synchronize"));
contextMenu.addAction(synchronizeAction);
synchronizeAction.triggered.connect(this, "toggleSynchronizeButton(Boolean)");
QAction printAction = addContextAction("print", tr("Print"));
contextMenu.addAction(printAction);
printAction.triggered.connect(this, "togglePrintButton(Boolean)");
QAction tagAction = addContextAction("tag", tr("Tag"));
contextMenu.addAction(tagAction);
tagAction.triggered.connect(this, "toggleTagButton(Boolean)");