mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
refs #197, isNull PQ converted to "undefined"
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "blackmisc/pqallquantities.h"
|
||||
#include "blackmiscfreefunctions.h"
|
||||
#include <QCoreApplication>
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
@@ -262,6 +263,7 @@ namespace BlackMisc
|
||||
*/
|
||||
template <class MU, class PQ> QString CPhysicalQuantity<MU, PQ>::convertToQString(bool i18n) const
|
||||
{
|
||||
if (this->isNull()) return (i18n) ? QCoreApplication::translate("CPhysicalQuantity", "undefined") : "undefined";
|
||||
return this->valueRoundedWithUnit(this->getUnit(), -1, i18n);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user