changed more pointers to smart pointers + added some tooltips for shortcuts
This commit is contained in:
@@ -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>();
|
||||
|
||||
@@ -39,6 +39,9 @@ class MainWindow : public QMainWindow {
|
||||
std::shared_ptr<WindowsSettings> interfaceSettings;
|
||||
std::shared_ptr<WindowRennliste> interfaceRennliste;
|
||||
std::shared_ptr<Evaluation> interfaceEvaluation;
|
||||
|
||||
std::shared_ptr<QShortcut> startTraining;
|
||||
std::shared_ptr<QShortcut> startRennen;
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="1,1,1,0">
|
||||
<item>
|
||||
<widget class="QPushButton" name="pBRennen">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Strg+r</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Rennen</string>
|
||||
</property>
|
||||
@@ -26,6 +29,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pBTraining">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Strg+t</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Training</string>
|
||||
</property>
|
||||
|
||||
@@ -421,6 +421,9 @@
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="pBResetShell">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Strg+s</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reset Shell</string>
|
||||
</property>
|
||||
@@ -435,6 +438,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pBResetDea">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Strg+d</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reset Dea</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user