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:
parent
64df6d8095
commit
0a67af35b3
|
@ -1485,8 +1485,6 @@ void TMainWindow::SaveMBaseValue(double value)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (meash->IsCustom())
|
|
||||||
{
|
|
||||||
m->SetMBaseValue(nameField->data(Qt::UserRole).toString(), value);
|
m->SetMBaseValue(nameField->data(Qt::UserRole).toString(), value);
|
||||||
|
|
||||||
MeasurementsWasSaved(false);
|
MeasurementsWasSaved(false);
|
||||||
|
@ -1497,11 +1495,6 @@ void TMainWindow::SaveMBaseValue(double value)
|
||||||
ui->tableWidget->blockSignals(true);
|
ui->tableWidget->blockSignals(true);
|
||||||
ui->tableWidget->selectRow(row);
|
ui->tableWidget->selectRow(row);
|
||||||
ui->tableWidget->blockSignals(false);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (meash->IsCustom())
|
|
||||||
{
|
|
||||||
m->SetMSizeIncrease(nameField->data(Qt::UserRole).toString(), value);
|
m->SetMSizeIncrease(nameField->data(Qt::UserRole).toString(), value);
|
||||||
|
|
||||||
MeasurementsWasSaved(false);
|
MeasurementsWasSaved(false);
|
||||||
|
@ -1543,12 +1534,6 @@ void TMainWindow::SaveMSizeIncrease(double value)
|
||||||
ui->tableWidget->blockSignals(true);
|
ui->tableWidget->blockSignals(true);
|
||||||
ui->tableWidget->selectRow(row);
|
ui->tableWidget->selectRow(row);
|
||||||
ui->tableWidget->blockSignals(false);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (meash->IsCustom())
|
|
||||||
{
|
|
||||||
m->SetMHeightIncrease(nameField->data(Qt::UserRole).toString(), value);
|
m->SetMHeightIncrease(nameField->data(Qt::UserRole).toString(), value);
|
||||||
|
|
||||||
MeasurementsWasSaved(false);
|
MeasurementsWasSaved(false);
|
||||||
|
@ -1588,12 +1571,6 @@ void TMainWindow::SaveMHeightIncrease(double value)
|
||||||
search->RefreshList(ui->lineEditFind->text());
|
search->RefreshList(ui->lineEditFind->text());
|
||||||
|
|
||||||
ui->tableWidget->selectRow(row);
|
ui->tableWidget->selectRow(row);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
qCWarning(tMainWindow, "%s",
|
|
||||||
qUtf8Printable(tr("The height increase value of known measurement forbidden to change.")));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user