Пример #1
0
void MenuCallback::actionInvoked()
{
   QAction* action = qobject_cast<QAction*>(sender());
   QString commandId = action->data().toString();
   manageCommand(commandId, action);
   if (action->isEnabled())
      commandInvoked(commandId);
}
Пример #2
0
void MenuCallback::actionInvoked()
{
   QAction* action = qobject_cast<QAction*>(sender());
   QString commandId = action->data().toString();
   commandInvoked(commandId);
}
Пример #3
0
void CommandInvoker::invoke()
{
   commandInvoked(commandId_);
}