Exemplo n.º 1
0
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()));
}
Exemplo n.º 2
0
 void send_exit(const ActorHandle& dest, uint32_t reason) {
   send_exit(dest.address(), reason);
 }
Exemplo n.º 3
0
 /**
  * Sends an exit message to `whom`.
  */
 inline void send_exit(const actor& whom, uint32_t reason) {
   send_exit(whom.address(), reason);
 }
Exemplo n.º 4
0
 void send_exit(const typed_actor<Rs...>& whom, uint32_t reason) {
   send_exit(whom.address(), reason);
 }
Exemplo n.º 5
0
void send_exit(const typed_actor_ptr<Signatures...>& whom, std::uint32_t rsn) {
    send_exit(whom.type_erased(), rsn);
}