X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FLengthCombo.cpp;h=6eacfbfb36d715d5ae2a2586cde557d7232f3084;hb=1f10969bb5c5f36017bf5ba8671381b09945cf57;hp=727eebf16aac4fb69ba877a63ee230d752d4aa7c;hpb=a756403301ff8fb78df4dc1e131e4cd50cd976e1;p=lyx.git diff --git a/src/frontends/qt4/LengthCombo.cpp b/src/frontends/qt4/LengthCombo.cpp index 727eebf16a..6eacfbfb36 100644 --- a/src/frontends/qt4/LengthCombo.cpp +++ b/src/frontends/qt4/LengthCombo.cpp @@ -21,6 +21,9 @@ #include +namespace lyx { +namespace frontend { + LengthCombo::LengthCombo(QWidget * parent) : QComboBox(parent) { @@ -95,6 +98,14 @@ void LengthCombo::noPercents() } +void LengthCombo::removeFontDependent() +{ + removeUnit(Length::EM); + removeUnit(Length::EX); + removeUnit(Length::MU); +} + + void LengthCombo::removeUnit(lyx::Length::UNIT unit) { QString const val = lyx::toqstr(lyx::stringFromUnit(unit)); @@ -122,5 +133,7 @@ void LengthCombo::addUnit(lyx::Length::UNIT unit) lyx::toqstr(lyx::unit_name[int(unit)])); } +} // namespace frontend +} // namespace lyx #include "moc_LengthCombo.cpp"