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);
|
||||||
|
@ -1498,11 +1496,6 @@ void TMainWindow::SaveMBaseValue(double value)
|
||||||
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.")));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void TMainWindow::SaveMSizeIncrease(double value)
|
void TMainWindow::SaveMSizeIncrease(double value)
|
||||||
|
@ -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);
|
||||||
|
@ -1544,12 +1535,6 @@ void TMainWindow::SaveMSizeIncrease(double value)
|
||||||
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.")));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void TMainWindow::SaveMHeightIncrease(double value)
|
void TMainWindow::SaveMHeightIncrease(double value)
|
||||||
|
@ -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);
|
||||||
|
@ -1589,12 +1572,6 @@ void TMainWindow::SaveMHeightIncrease(double value)
|
||||||
|
|
||||||
ui->tableWidget->selectRow(row);
|
ui->tableWidget->selectRow(row);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
qCWarning(tMainWindow, "%s",
|
|
||||||
qUtf8Printable(tr("The height increase value of known measurement forbidden to change.")));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void TMainWindow::SaveMDescription()
|
void TMainWindow::SaveMDescription()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user