TCP with tirette

This commit is contained in:
ackimixs
2024-03-27 20:36:13 +01:00
parent 2d33e37988
commit 8a93e22792
2 changed files with 12 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ public:
this->tiretteState = new TiretteState(this);
this->leftLayout->addWidget(tiretteState);
connect(this->tiretteState, &TiretteState::askTCPServer, this, &PreparationMatch::askTCPServer);
this->rightLayout = new QVBoxLayout();
this->ledVerte = new OneItemPreparation("Led verte", "Check", this);

View File

@@ -22,6 +22,8 @@ public:
this->mainLayout->addWidget(this->title, 0, Qt::AlignCenter);
this->mainLayout->addLayout(this->tiretteStateLayout);
connect(this->stateButton, &QPushButton::clicked, this, &TiretteState::onStateButtonClicked);
}
void setState(const std::string& state)
@@ -35,6 +37,15 @@ public:
}
}
signals:
void askTCPServer(const std::string& message);
public slots:
void onStateButtonClicked()
{
emit askTCPServer("strat;tirette;ping;0");
}
private:
QVBoxLayout* mainLayout;
QLabel* title;