void MenuCallback::actionInvoked() { QAction* action = qobject_cast<QAction*>(sender()); QString commandId = action->data().toString(); manageCommand(commandId, action); if (action->isEnabled()) commandInvoked(commandId); }
void MenuCallback::actionInvoked() { QAction* action = qobject_cast<QAction*>(sender()); QString commandId = action->data().toString(); commandInvoked(commandId); }
void CommandInvoker::invoke() { commandInvoked(commandId_); }