From db4d19413edd7d655582b010e26d3c1267413bc4 Mon Sep 17 00:00:00 2001 From: JPaehr Date: Mon, 22 Dec 2014 13:41:56 +0100 Subject: [PATCH] added shortcuts --- mainwindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 53c6671..6c4328f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,6 +1,7 @@ #include "mainwindow.h" #include "ui_mainwindow.h" #include +#include #include "windowssettings.h" #include #include "hardwaresetup.h" @@ -31,6 +32,12 @@ MainWindow::MainWindow(QWidget *parent) : QObject::connect(ui->pBRennen, SIGNAL(clicked()), this, SLOT(WindowRennen())); QObject::connect(this->ui->pBTraining, SIGNAL(clicked()), this, SLOT(WindowTraining())); + QShortcut *startTraining = new QShortcut(QKeySequence("Ctrl+t"), this); + QShortcut *startRennen = new QShortcut(QKeySequence("Ctrl+r"), this); + + QObject::connect(startTraining, SIGNAL(activated()), this, SLOT(WindowTraining())); + QObject::connect(startRennen, SIGNAL(activated()), this, SLOT(WindowRennen())); + this->db = new DataBase;