initial commit
This commit is contained in:
52
mainwindow.cpp
Normal file
52
mainwindow.cpp
Normal file
@@ -0,0 +1,52 @@
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include <QObject>
|
||||
#include "windowssettings.h"
|
||||
#include <iostream>
|
||||
#include "hardwaresetup.h"
|
||||
#include "windowrace.h"
|
||||
#include "database.h"
|
||||
#include <vector>
|
||||
#include "windowrennliste2.h"
|
||||
using std::vector;
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
ui(new Ui::MainWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
test = new HardwareSetup;
|
||||
|
||||
this->test->start();
|
||||
QObject::connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(NewWindowSettings()));
|
||||
|
||||
QObject::connect(ui->pBRennen, SIGNAL(clicked()), this, SLOT(WindowRennen()));
|
||||
|
||||
this->db = new DataBase;
|
||||
|
||||
vector< vector <QString> > daten = db->getData("select * from Fahrer", 2);
|
||||
//DataBase ndb;
|
||||
//vector< vector <QString> > daten2 = ndb.getData("select * from Fahrer", 2);
|
||||
//DataBase ndb2;
|
||||
//vector< vector <QString> > daten3 = ndb2.getData("select * from Fahrer", 2);
|
||||
|
||||
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
void MainWindow::NewWindowSettings(){
|
||||
this->interfaceSettings = new WindowsSettings(this->db, this);
|
||||
this->interfaceSettings->show();
|
||||
}
|
||||
|
||||
void MainWindow::WindowRennen(){
|
||||
this->interfaceRace = new WindowRace(this->db, this);
|
||||
this->interfaceRace->show();
|
||||
this->interfaceRennliste = new WindowRennliste(this->db, this);
|
||||
this->interfaceRennliste->show();
|
||||
this->interfaceRace->setWindowRennliste(this->interfaceRennliste);
|
||||
}
|
||||
Reference in New Issue
Block a user