realtimemain.cpp 731 Bytes
#include "realtimemain.h"
#include "ui_realtimemain.h"
#include "realtimepartswindow.h"
#include "realtimesensorwindow.h"

realtimeMain::realtimeMain(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::realtimeMain)
{
    ui->setupUi(this);
}

realtimeMain::~realtimeMain()
{
    delete ui;
}

void realtimeMain::on_btnPartsReal_clicked()
{
    realtimePartsWindow* w = new realtimePartsWindow(this);
    w->setWindowModality(Qt::WindowModal);
    w->showFullScreen();
}

void realtimeMain::on_btnTemperatureReal_clicked()
{
    realtimeSensorWindow* w = new realtimeSensorWindow(this);
    w->setWindowModality(Qt::WindowModal);
    w->showFullScreen();
}

void realtimeMain::on_backButton_clicked()
{
    deleteLater();
}