added shortcut on trainmode to reset tracktimes

This commit is contained in:
2014-12-20 13:53:03 +01:00
parent ddd5a18654
commit d5aa9cb1cc

View File

@@ -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()));