From d5aa9cb1cc05b9c065d1af3b75ad35d87fff9e73 Mon Sep 17 00:00:00 2001 From: JPaehr Date: Sat, 20 Dec 2014 13:53:03 +0100 Subject: [PATCH] added shortcut on trainmode to reset tracktimes --- training.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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()));