Corrections & développement (suite)

This commit is contained in:
2023-06-17 12:58:31 -04:00
parent abc91f1932
commit 7bbf2cb812
16 changed files with 526 additions and 53 deletions
@@ -16,6 +16,9 @@ CGeneralStatusPage::CGeneralStatusPage(QWidget *parent) :
ui->mCANModuleStatusTableWdgt->setColumnCount(3);
ui->mCANModuleStatusTableWdgt->setHorizontalHeaderLabels(QStringList() << "Nom" << "Statut" << "Buffer");
ui->mPuckCANConStatLbl->setVisible(false);
ui->mPuckCANLbl->setVisible(false);
}
CGeneralStatusPage::~CGeneralStatusPage()
@@ -142,6 +145,13 @@ int CGeneralStatusPage::SetCANConnectionStatus(bool Connected)
return RET_OK;
}
int CGeneralStatusPage::ClearCANModuleStatusTable()
{
ui->mCANModuleStatusTableWdgt->clearContents();
ui->mCANModuleStatusTableWdgt->setRowCount(0);
return RET_OK;
}
int CGeneralStatusPage::UpdateCANModuleStatus(QString ModuleName, QString ModuleStatus, QString Buffer)
{
QList<QTableWidgetItem *> Items = ui->mCANModuleStatusTableWdgt->findItems(ModuleName,Qt::MatchFixedString);