gastestwindow.cpp
694 Bytes
#include "gastestwindow.h"
#include "ui_gastestwindow.h"
#include "soundplayer.h"
GasTestWindow::GasTestWindow(QWidget *parent, UdpHandler *udp) :
QMainWindow(parent),
ui(new Ui::GasTestWindow), udp(udp)
{
ui->setupUi(this);
ui->clockContainer->setParent(ui->upperStack);
setAttribute(Qt::WA_DeleteOnClose);
foreach (QPushButton *button, findChildren<QPushButton *>())
connect(button, &QPushButton::pressed, SoundPlayer::playClick);
connect(udp, SIGNAL(changed()), this, SLOT(onDataChanged()));
}
GasTestWindow::~GasTestWindow()
{
delete ui;
}
void GasTestWindow::onDataChanged()
{
}
void GasTestWindow::on_backButton_clicked()
{
close();
}