fixed some heavy pointermistakes

This commit is contained in:
2014-09-24 21:35:04 +02:00
parent b18e3f9943
commit ff954eced0
19 changed files with 751 additions and 56 deletions

View File

@@ -8,6 +8,8 @@
#include "database.h"
#include <vector>
#include "windowrennliste2.h"
#include "training.h"
#include "unistd.h"
using std::vector;
MainWindow::MainWindow(QWidget *parent) :
@@ -16,23 +18,36 @@ MainWindow::MainWindow(QWidget *parent) :
{
ui->setupUi(this);
test = new HardwareSetup;
//test = new HardwareSetup;
this->test->start();
//this->test->start();
QObject::connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(NewWindowSettings()));
QObject::connect(ui->pBRennen, SIGNAL(clicked()), this, SLOT(WindowRennen()));
QObject::connect(this->ui->pBTraining, SIGNAL(clicked()), this, SLOT(WindowTraining()));
this->db = new DataBase;
vector< vector <QString> > daten = db->getData("select * from Fahrer", 2);
}
void MainWindow::closeEvent(QCloseEvent *event){
}
MainWindow::~MainWindow()
{
delete this->db;
delete ui;
}
void MainWindow::WindowTraining(){
}
void MainWindow::NewWindowSettings(){
this->interfaceSettings = new WindowsSettings(this->db, this);
this->interfaceSettings->show();