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,
|
QObject::connect(this->ui->pBEvaluation, SIGNAL(clicked()), this,
|
||||||
SLOT(WindowEvaluation()));
|
SLOT(WindowEvaluation()));
|
||||||
|
|
||||||
QShortcut * startTraining = new QShortcut(QKeySequence("Ctrl+t"), this);
|
startTraining = std::make_shared<QShortcut>(QKeySequence("Ctrl+t"), this);
|
||||||
QShortcut * startRennen = new QShortcut(QKeySequence("Ctrl+r"), 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()));
|
SLOT(WindowTraining()));
|
||||||
QObject::connect(startRennen, SIGNAL(activated()), this,
|
QObject::connect(startRennen.get(), SIGNAL(activated()), this,
|
||||||
SLOT(WindowRennen()));
|
SLOT(WindowRennen()));
|
||||||
|
|
||||||
this->db = std::make_shared<DataBase>();
|
this->db = std::make_shared<DataBase>();
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ class MainWindow : public QMainWindow {
|
|||||||
std::shared_ptr<WindowsSettings> interfaceSettings;
|
std::shared_ptr<WindowsSettings> interfaceSettings;
|
||||||
std::shared_ptr<WindowRennliste> interfaceRennliste;
|
std::shared_ptr<WindowRennliste> interfaceRennliste;
|
||||||
std::shared_ptr<Evaluation> interfaceEvaluation;
|
std::shared_ptr<Evaluation> interfaceEvaluation;
|
||||||
|
|
||||||
|
std::shared_ptr<QShortcut> startTraining;
|
||||||
|
std::shared_ptr<QShortcut> startRennen;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
#endif // MAINWINDOW_H
|
||||||
|
|||||||
@@ -19,6 +19,9 @@
|
|||||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="1,1,1,0">
|
<layout class="QVBoxLayout" name="verticalLayout" stretch="1,1,1,0">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pBRennen">
|
<widget class="QPushButton" name="pBRennen">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Strg+r</p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Rennen</string>
|
<string>Rennen</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -26,6 +29,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pBTraining">
|
<widget class="QPushButton" name="pBTraining">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Strg+t</p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Training</string>
|
<string>Training</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
@@ -421,6 +421,9 @@
|
|||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pBResetShell">
|
<widget class="QPushButton" name="pBResetShell">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Strg+s</p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Reset Shell</string>
|
<string>Reset Shell</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -435,6 +438,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pBResetDea">
|
<widget class="QPushButton" name="pBResetDea">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Strg+d</p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Reset Dea</string>
|
<string>Reset Dea</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user