diff --git a/mainwindow.cpp b/mainwindow.cpp index 6874948..cc1bd53 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -35,12 +35,12 @@ MainWindow::MainWindow(QWidget * parent) QObject::connect(this->ui->pBEvaluation, SIGNAL(clicked()), this, SLOT(WindowEvaluation())); - QShortcut * startTraining = new QShortcut(QKeySequence("Ctrl+t"), this); - QShortcut * startRennen = new QShortcut(QKeySequence("Ctrl+r"), this); + startTraining = std::make_shared(QKeySequence("Ctrl+t"), this); + startRennen = std::make_shared(QKeySequence("Ctrl+r"), this); - QObject::connect(startTraining, SIGNAL(activated()), this, + QObject::connect(startTraining.get(), SIGNAL(activated()), this, SLOT(WindowTraining())); - QObject::connect(startRennen, SIGNAL(activated()), this, + QObject::connect(startRennen.get(), SIGNAL(activated()), this, SLOT(WindowRennen())); this->db = std::make_shared(); diff --git a/mainwindow.h b/mainwindow.h index ed07dc6..4351151 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -39,6 +39,9 @@ class MainWindow : public QMainWindow { std::shared_ptr interfaceSettings; std::shared_ptr interfaceRennliste; std::shared_ptr interfaceEvaluation; + + std::shared_ptr startTraining; + std::shared_ptr startRennen; }; #endif // MAINWINDOW_H diff --git a/mainwindow.ui b/mainwindow.ui index 45ee4f7..50ff8e9 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -19,6 +19,9 @@ + + <html><head/><body><p>Strg+r</p></body></html> + Rennen @@ -26,6 +29,9 @@ + + <html><head/><body><p>Strg+t</p></body></html> + Training diff --git a/training.ui b/training.ui index 9805d70..5691986 100644 --- a/training.ui +++ b/training.ui @@ -421,6 +421,9 @@ + + <html><head/><body><p>Strg+s</p></body></html> + Reset Shell @@ -435,6 +438,9 @@ + + <html><head/><body><p>Strg+d</p></body></html> + Reset Dea