mirror of
https://github.com/modelec/ihm.git
synced 2026-01-19 00:57:27 +01:00
34 lines
1.2 KiB
C++
34 lines
1.2 KiB
C++
#include "Homologation.h"
|
|
|
|
Homologation::Homologation(QWidget *parent) : QWidget(parent) {
|
|
this->layout = new QVBoxLayout(this);
|
|
|
|
this->text = new QLabel("Mode Homologation", this);
|
|
text->setStyleSheet("font-size: 66px; font-weight: bold; margin-top: 20px; color: black;");
|
|
this->text->setAlignment(Qt::AlignCenter);
|
|
layout->addWidget(text);
|
|
|
|
this->deplier = new QPushButton("Déplier", this);
|
|
deplier->setStyleSheet("background-color: #5FC8E6; border-radius: 20px; height: 66px; width: 378px; margin-top: 20px; color: black; font-size: 33px;");
|
|
deplier->setBaseSize(378, 66);
|
|
layout->addWidget(deplier);
|
|
|
|
this->replier = new QPushButton("Replier", this);
|
|
replier->setStyleSheet("background-color: #ED4747; border-radius: 20px; height: 66px; width: 378px; margin-top: 20px; color: black; font-size: 33px;");
|
|
replier->setBaseSize(378, 66);
|
|
layout->addWidget(replier);
|
|
|
|
connect(this->deplier, &QPushButton::pressed, this, &Homologation::onDeplierClicked);
|
|
|
|
connect(this->replier, &QPushButton::pressed, this, &Homologation::onReplierClicked);
|
|
}
|
|
|
|
void Homologation::onDeplierClicked()
|
|
{
|
|
emit deplierClicked();
|
|
}
|
|
|
|
void Homologation::onReplierClicked()
|
|
{
|
|
emit replierClicked();
|
|
} |