-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmainwindow.cpp
38 lines (29 loc) · 853 Bytes
/
mainwindow.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "settingsdialog.h"
using namespace std;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
qRegisterMetaType<SettingsDialog::Settings>("SettingsDialog::Settings");
setparam = new SetParameters;
soccer = new soccer_window;
ui->setupUi(this);
QPixmap pix("rino.png");
ui->logo->setPixmap(pix);
connect(ui->setParameters, SIGNAL(clicked(bool)), this, SLOT(openSetParameters()));
connect(setparam, SIGNAL(serialSettings(SettingsDialog::Settings)), soccer, SLOT(receiveSerialSettings(SettingsDialog::Settings)), Qt::QueuedConnection);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::openSetParameters()
{
setparam->show();
}
void MainWindow::on_pushButton_5_clicked()
{
soccer->show();
}