Fix highlighting a measurement separator.

This commit is contained in:
Roman Telezhynskyi 2022-02-17 18:44:03 +02:00
parent bd13db8371
commit 214f4f7562

View file

@ -3249,10 +3249,11 @@ void TMainWindow::RefreshTable(bool freshCall)
} }
else if (meash->GetType() == VarType::MeasurementSeparator) else if (meash->GetType() == VarType::MeasurementSeparator)
{ {
QTableWidgetItem *item = AddCell(VAbstractApplication::VApp()->TrVars()->MToUser(meash->GetName()), QTableWidgetItem *item = AddSeparatorCell(
currentRow, ColumnName, Qt::AlignVCenter); // name VAbstractApplication::VApp()->TrVars()->MToUser(meash->GetName()), currentRow, ColumnName,
Qt::AlignVCenter); // name
item->setData(Qt::UserRole, meash->GetName()); item->setData(Qt::UserRole, meash->GetName());
AddSeparatorCell(meash->GetDescription(), currentRow, ColumnFullName, Qt::AlignVCenter); // description AddCell(meash->GetDescription(), currentRow, ColumnFullName, Qt::AlignVCenter); // description
if (mType == MeasurementsType::Individual) if (mType == MeasurementsType::Individual)
{ {