changed more pointers to smart pointers + added some tooltips for shortcuts

This commit is contained in:
2018-12-28 17:28:10 +01:00
parent c2dc4b72a5
commit fcec2ad4b4
4 changed files with 19 additions and 4 deletions

View File

@@ -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<QShortcut>(QKeySequence("Ctrl+t"), this);
startRennen = std::make_shared<QShortcut>(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<DataBase>();