Unit::LAST_UNIT_DO_NOT_USE used to mark a dimension which doesn't have units.
This commit is contained in:
parent
5fb441c9ba
commit
9f42d88394
|
@ -506,8 +506,7 @@ auto UnitsToStr(const Unit &unit, const bool translate) -> QString
|
||||||
case Unit::Px:
|
case Unit::Px:
|
||||||
return translate ? QObject::tr("px") : unitPX;
|
return translate ? QObject::tr("px") : unitPX;
|
||||||
case Unit::LAST_UNIT_DO_NOT_USE:
|
case Unit::LAST_UNIT_DO_NOT_USE:
|
||||||
Q_UNREACHABLE();
|
return {};
|
||||||
break;
|
|
||||||
case Unit::Cm:
|
case Unit::Cm:
|
||||||
default:
|
default:
|
||||||
return translate ? QObject::tr("cm") : unitCM;
|
return translate ? QObject::tr("cm") : unitCM;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user