- if (SignalHandler::prepare_signals()) {
- SignalHandler *const handler = new SignalHandler(&w);
- QObject::connect(handler, SIGNAL(int_received()),
- &w, SLOT(close()));
- QObject::connect(handler, SIGNAL(term_received()),
- &w, SLOT(close()));
- } else
- qWarning() << "Could not prepare signal handler.";
+ if (SignalHandler::prepare_signals()) {
+ SignalHandler *const handler = new SignalHandler(&w);
+ QObject::connect(handler, SIGNAL(int_received()), &w, SLOT(close()));
+ QObject::connect(handler, SIGNAL(term_received()), &w, SLOT(close()));
+ QObject::connect(handler, SIGNAL(usr1_received()), &w, SLOT(on_run_stop_clicked()));
+ } else
+ qWarning() << "Could not prepare signal handler.";