modelsettingwindow.cpp 809 Bytes
#include "modelsettingwindow.h"
#include "ui_modelsettingwindow.h"

#include "electricmodelsettingwindow.h"
#include "gasmodelsettingwindow.h"

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

    ui->clockContainer->setParent(ui->upperStack);
    setAttribute(Qt::WA_DeleteOnClose);
}

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

void ModelSettingWindow::on_electricButton_clicked()
{
    ElectricModelSettingWindow *w = new ElectricModelSettingWindow(this);
    w->showFullScreen();
}

void ModelSettingWindow::on_gasButton_clicked()
{
    GasModelSettingWindow *w = new GasModelSettingWindow(this);
    w->showFullScreen();
}

void ModelSettingWindow::on_backButton_clicked()
{
    close();
}