Base: Units: introduce unit one
Dimensionless quantities have all exponents equal to zero. Such quantities are simply numbers. The associated unit is the unit one, symbol 1, although this is rarely explicitly written. See chapter 2.3.3 Dimensions of quantities, The International System of Units, 9th edition.
This commit is contained in:
@@ -282,7 +282,7 @@ void InputField::newInput(const QString & text)
|
||||
res.setUnit(this->actUnit);
|
||||
|
||||
// check if unit fits!
|
||||
if (!actUnit.isEmpty() && !res.isDimensionless() && actUnit != res.getUnit()){
|
||||
if (actUnit != Unit::One && !res.isDimensionless() && actUnit != res.getUnit()){
|
||||
if (iconLabel->isHidden()) {
|
||||
iconLabel->setVisible(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user