Don't know why i did this, but this code did not allow change valies of known

measurement in standard table.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-22 16:31:31 +02:00
parent 64df6d8095
commit 0a67af35b3

View file

@ -1485,8 +1485,6 @@ void TMainWindow::SaveMBaseValue(double value)
return;
}
if (meash->IsCustom())
{
m->SetMBaseValue(nameField->data(Qt::UserRole).toString(), value);
MeasurementsWasSaved(false);
@ -1497,11 +1495,6 @@ void TMainWindow::SaveMBaseValue(double value)
ui->tableWidget->blockSignals(true);
ui->tableWidget->selectRow(row);
ui->tableWidget->blockSignals(false);
}
else
{
qCWarning(tMainWindow, "%s", qUtf8Printable(tr("The base value of known measurement forbidden to change.")));
}
}
//---------------------------------------------------------------------------------------------------------------------
@ -1531,8 +1524,6 @@ void TMainWindow::SaveMSizeIncrease(double value)
return;
}
if (meash->IsCustom())
{
m->SetMSizeIncrease(nameField->data(Qt::UserRole).toString(), value);
MeasurementsWasSaved(false);
@ -1543,12 +1534,6 @@ void TMainWindow::SaveMSizeIncrease(double value)
ui->tableWidget->blockSignals(true);
ui->tableWidget->selectRow(row);
ui->tableWidget->blockSignals(false);
}
else
{
qCWarning(tMainWindow, "%s",
qUtf8Printable(tr("The size increase value of known measurement forbidden to change.")));
}
}
//---------------------------------------------------------------------------------------------------------------------
@ -1578,8 +1563,6 @@ void TMainWindow::SaveMHeightIncrease(double value)
return;
}
if (meash->IsCustom())
{
m->SetMHeightIncrease(nameField->data(Qt::UserRole).toString(), value);
MeasurementsWasSaved(false);
@ -1588,12 +1571,6 @@ void TMainWindow::SaveMHeightIncrease(double value)
search->RefreshList(ui->lineEditFind->text());
ui->tableWidget->selectRow(row);
}
else
{
qCWarning(tMainWindow, "%s",
qUtf8Printable(tr("The height increase value of known measurement forbidden to change.")));
}
}
//---------------------------------------------------------------------------------------------------------------------