diff options
Diffstat (limited to 'sigmod/Object.cpp')
| -rw-r--r-- | sigmod/Object.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sigmod/Object.cpp b/sigmod/Object.cpp index 4309b965..bf1f3fb8 100644 --- a/sigmod/Object.cpp +++ b/sigmod/Object.cpp @@ -75,11 +75,12 @@ QString Object::unused(const QString& variable) return QString("Setting unused variable %1").arg(variable); } +// TODO: Use minus sign in negative representations of bounds QString Object::bounds(const QString& variable, const int min, const int max, const int value) { - QString msg = QString("Value for %1 out-of-bounds (%2 -- %3) (%4)").arg(variable); + QString msg = QString::fromUtf8("Value for %1 out-of-bounds (%2 – %3) (%4)").arg(variable); if (min == INT_MIN) - msg = msg.arg(QString::fromUtf8("-∞")); + msg = msg.arg(QString::fromUtf8("−∞")); else msg = msg.arg(min); if (max == INT_MAX) @@ -91,9 +92,9 @@ QString Object::bounds(const QString& variable, const int min, const int max, co QString Object::bounds(const QString& variable, const int min, const int max, const Fraction& value) { - QString msg = QString("Value for %1 out-of-bounds (%2 -- %3) (%4 / %5)").arg(variable); + QString msg = QString::fromUtf8("Value for %1 out-of-bounds (%2 – %3) (%4 / %5)").arg(variable); if (min == INT_MIN) - msg = msg.arg(QString::fromUtf8("-∞")); + msg = msg.arg(QString::fromUtf8("−∞")); else msg = msg.arg(min); if (max == INT_MAX) @@ -105,7 +106,7 @@ QString Object::bounds(const QString& variable, const int min, const int max, co QString Object::bounds(const QString& variable, const QString& min, const QString& max, const int value) { - return QString("Value for %1 out-of-bounds (%2 -- %3) (%4)").arg(variable).arg(min).arg(max).arg(value); + return QString::fromUtf8("Value for %1 out-of-bounds (%2 – %3) (%4)").arg(variable).arg(min).arg(max).arg(value); } QString Object::bounds(const QString& variable, const int value) |
