void MainWindow::create_actions(){ quit_action = new QAction("Выход", this); quit_action->setStatusTip("Выход из программы"); connect(quit_action, SIGNAL(activated()), this, SLOT(send_exit())); settings_action = new QAction("Настройки", this); quit_action->setStatusTip("Открыть окно настроек"); connect(settings_action, SIGNAL(activated()), this, SLOT(send_settings())); }
void send_exit(const ActorHandle& dest, uint32_t reason) { send_exit(dest.address(), reason); }
/** * Sends an exit message to `whom`. */ inline void send_exit(const actor& whom, uint32_t reason) { send_exit(whom.address(), reason); }
void send_exit(const typed_actor<Rs...>& whom, uint32_t reason) { send_exit(whom.address(), reason); }
void send_exit(const typed_actor_ptr<Signatures...>& whom, std::uint32_t rsn) { send_exit(whom.type_erased(), rsn); }