+ params_.height_special = "totalheight";
+ } else {
+ unit = heightUnitsLC->itemData(heightUnitsLC->currentIndex()).toString();
+ value = heightED->text();
+ if (ids_spec_.contains(unit) && !isValidLength(fromqstr(value))) {
+ params_.height_special = fromqstr(unit);
+ // Note: the unit is simply ignored in this case
+ params_.height = Length(value.toDouble(), Length::IN);
+ } else {
+ params_.height_special = "none";
+ params_.height =
+ Length(widgetsToLength(heightED, heightUnitsLC));
+ }