diff --git a/training.cpp b/training.cpp index d608aac..432ecc7 100644 --- a/training.cpp +++ b/training.cpp @@ -37,7 +37,13 @@ Training::Training(QWidget *parent, DataBase *db) : //QObject::connect(this->ui->pBStop, SIGNAL(clicked()), this, SLOT(stopClicked())); QShortcut *shortcut = new QShortcut(QKeySequence("Ctrl+Q"), this); + QShortcut *shellReset = new QShortcut(QKeySequence("Ctrl+s"), this); + QShortcut *deaReset = new QShortcut(QKeySequence("Ctrl+d"), this); + QObject::connect(shortcut, SIGNAL(activated()), this, SLOT(close())); + QObject::connect(shellReset, SIGNAL(activated()), this, SLOT(ResetShell())); + QObject::connect(deaReset, SIGNAL(activated()), this, SLOT(ResetDea())); + QObject::connect(this->ui->pBReset, SIGNAL(clicked()), this, SLOT(Reset())); QObject::connect(this->ui->pBResetDea, SIGNAL(clicked()), this, SLOT(ResetDea())); QObject::connect(this->ui->pBResetShell, SIGNAL(clicked()), this, SLOT(ResetShell()));