Gui: Use std::numeric_limits and std::numbers instead of defines

This commit is contained in:
Benjamin Nauck
2025-03-27 18:59:58 +01:00
parent ae686942a7
commit 34bc1d45ea
33 changed files with 204 additions and 168 deletions

View File

@@ -96,7 +96,7 @@ bool PropertyModel::setData(const QModelIndex& index, const QVariant& value, int
// now?
double d = data.toDouble();
double v = value.toDouble();
if (fabs(d - v) > DBL_EPSILON) {
if (fabs(d - v) > std::numeric_limits<double>::epsilon()) {
return item->setData(value);
}
}